#33906: TestCase inconsistent behavior on Db integrity error
-------------------------------------+-------------------------------------
     Reporter:  an-mile              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Testing framework    |                  Version:  4.0
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  testsuite            |             Triage Stage:
  integrityError bug inconsistent    |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by an-mile):

 Here another detail: it does not merrily excessively capturing an
 **django.db.utils.IntegrityError** since the following will just fail with
 an **IntegrityError** without executing further code :

 {{{

     def test_db_integrity_error_handling(self):
         rera = Reporter.objects.create(id=124)
         reru = Reporter.objects.create(id=124)
         # test execution interrupted here
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33906#comment:4>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701827cae45ad-77a5d4d3-8c98-4198-a201-ae2fe56e928d-000000%40eu-central-1.amazonses.com.

Reply via email to