diff options
| author | François Freitag <mail@franek.fr> | 2020-09-06 14:36:20 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-09-07 08:07:26 +0200 |
| commit | 57dadfac3cfae050c49b80c5ac56008acdef5196 (patch) | |
| tree | 28dd850eb41ce19a9274f913d8c5ac117d672404 /docs | |
| parent | 11ebc6479ffda87376b60c9475d33d8120f86368 (diff) | |
Fixed #31944 -- Used addCleanup() to register TestContextDecorator cleanups.
Cleanups from addCleanup() are scheduled to happen in reverse order to
the order they are added (LIFO). Ensures each cleanup is executed from
the innermost to the outermost.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.2.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index cc7ea744a2..a7bd5575d1 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -484,6 +484,11 @@ Miscellaneous * The undocumented ``django.utils.http.limited_parse_qsl()`` function is removed. Please use :func:`urllib.parse.parse_qsl` instead. +* ``django.test.utils.TestContextDecorator`` now uses + :py:meth:`~unittest.TestCase.addCleanup` so that cleanups registered in the + :py:meth:`~unittest.TestCase.setUp` method are called before + ``TestContextDecorator.disable()``. + .. _deprecated-features-3.2: Features deprecated in 3.2 |
