#30358: Possible access to unintended variable in
"django/tests/forms_tests/tests/test_utils.py" line 154
--------------------------------------+------------------------
               Reporter:  petrufm     |          Owner:  nobody
                   Type:  Bug         |         Status:  new
              Component:  Forms       |        Version:  master
               Severity:  Normal      |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
                  UI/UX:  0           |
--------------------------------------+------------------------
 While experimenting with a CodeSonar plugin we develop, we noticed a
 potential bug in file "django/tests/forms_tests/tests/test_utils.py" line
 154 function test_error_dict_copy.

 e_deepcopy = copy.deepcopy(e)
 self.assertEqual(e, e_deepcopy)
 self.assertEqual(e.as_data(), e_copy.as_data()) //HERE

 Shouldn't you get the data from e_deepcopy in that line (instead the data
 of e_copy)?

 Thanks,
 Petru-Florin Mihancea

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30358>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.f1d1b04782fe2c8db00047c822fed78a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to