#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                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by timgraham):

 For the test, could you store the result of `connection.in_atomic_block`
 in a variable and then put the assertion in the test method? I didn't
 understand what you meant when you said, "you can then trigger
 tearDownClass even though it shouldn't be run".

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

Reply via email to