#25176: TestCase: an error in setUpTestData snowballs across the entire test 
suite
--------------------------------------+--------------------
     Reporter:  adamchainz            |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Testing framework     |    Version:  1.8
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  1
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 If a setUpTestData function fails, it causes an error that breaks the
 current transaction; this is not undone by TestCase, and thus all
 following database access in all other tests fails, outputting a lot of
 ERRORs on a test run, and making it hard to debug that it was only the
 *first* one that has an actual problem. The atomic instances can be exited
 cleanly on exception fairly easily inside the TestCase code.

--
Ticket URL: <https://code.djangoproject.com/ticket/25176>
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/053.cb7d4415a392f0cf26ec9b2a61c0b3b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to