#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
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Thanks for this report, however I don't see any issue here. You raised
 `NameError` before trying to insert a new row to the database
 (`bulk_create()` call is where we hit the database), that's why
 `IntegrityError` is not raised.

 If you're having trouble understanding how Django works, see
 TicketClosingReasons/UseSupportChannels for ways to get help.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33906#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701827ca89669-534a7a0e-7b19-4b7c-b096-502f30fdb18c-000000%40eu-central-1.amazonses.com.

Reply via email to