mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #33161 -- Enabled durability check for nested atomic blocks in TestCase.
Co-Authored-By: Adam Johnson <me@adamj.eu>
This commit is contained in:
committed by
Mariusz Felisiak
parent
adb4100e58
commit
8d9827c06c
@@ -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
|
||||
==========
|
||||
|
||||
Reference in New Issue
Block a user