Fixed #33161 -- Enabled durability check for nested atomic blocks in TestCase.

Co-Authored-By: Adam Johnson <me@adamj.eu>
This commit is contained in:
Krzysztof Jagiello 2021-09-30 19:13:56 +02:00 committed by Mariusz Felisiak
parent adb4100e58
commit 8d9827c06c
7 changed files with 52 additions and 70 deletions

View file

@ -238,11 +238,10 @@ Django provides a single API to control database transactions.
is especially important if you're using :func:`atomic` in long-running
processes, outside of Django's request / response cycle.
.. warning::
.. versionchanged:: 4.1
:class:`django.test.TestCase` disables the durability check to allow
testing durable atomic blocks in a transaction for performance reasons. Use
:class:`django.test.TransactionTestCase` for testing durability.
In older versions, the durability check was disabled in
:class:`django.test.TestCase`.
Autocommit
==========