#31395: Make TestCase.setUpTestData enforce in-memory data isolation.
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Simon
                                     |  Charette
         Type:  New feature          |                   Status:  closed
    Component:  Testing framework    |                  Version:  master
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"3cf80d3fcf7446afdde16a2be515c423f720e54d" 3cf80d3f]:
 {{{
 #!CommitTicketReference repository=""
 revision="3cf80d3fcf7446afdde16a2be515c423f720e54d"
 Fixed #31395 -- Made setUpTestData enforce in-memory data isolation.

 Since it's introduction in Django 1.8 setUpTestData has been suffering
 from a documented but confusing caveat due to its sharing of attributes
 assigned during its execution with all test instances.

 By keeping track of class attributes assigned during the setUpTestData
 phase its possible to ensure only deep copies are provided to test
 instances on attribute retreival and prevent manual setUp gymnastic to
 work around the previous lack of in-memory data isolation.

 Thanks Adam Johnson for the extensive review.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31395#comment:5>
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/067.4f0c7e91464ed855eabdc7f90e0be470%40djangoproject.com.

Reply via email to