#31944: Use addCleanup() to register TestContextDecorator cleanups
-------------------------------------+-------------------------------------
Reporter: François Freitag | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by François Freitag):
* status: closed => new
* resolution: needsinfo =>
Comment:
Thanks for attempting to reproduce. To show the leak, tests must be run
sequentially. Otherwise, the second test case (LeakTest) runs on another
process where settings were not modified, thus does not detect the leak.
Steps to reproduce in my environment:
1. `git checkout 20d38fd75903b58335abd8e7cc576a1f1219a4fa`
2. Apply attached patch
3. `cd tests`
2. `./runtests.py test_utils.tests --parallel=1`
--
Ticket URL: <https://code.djangoproject.com/ticket/31944#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/073.f99d703ae269a9651da474e8fb0d64c9%40djangoproject.com.