summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFrançois Freitag <mail@franek.fr>2020-09-06 14:36:20 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-07 08:07:26 +0200
commit57dadfac3cfae050c49b80c5ac56008acdef5196 (patch)
tree28dd850eb41ce19a9274f913d8c5ac117d672404 /docs
parent11ebc6479ffda87376b60c9475d33d8120f86368 (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.txt5
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