summaryrefslogtreecommitdiff
path: root/tests/generic_relations
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2018-11-23 21:22:09 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-15 20:22:52 +0200
commit3cf80d3fcf7446afdde16a2be515c423f720e54d (patch)
treef68aacd6e8f3dab3e250504d16bb1a51ed929bf4 /tests/generic_relations
parent1dd96f731df3ca9df0e3ff83a9a8e723dc7e8685 (diff)
downloaddjango-3cf80d3fcf7446afdde16a2be515c423f720e54d.tar.gz
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.
Diffstat (limited to 'tests/generic_relations')
0 files changed, 0 insertions, 0 deletions