mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +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:
parent
adb4100e58
commit
8d9827c06c
7 changed files with 52 additions and 70 deletions
|
@ -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
|
||||
==========
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue