Fixed #33277 -- Disallowed database connections in threads in SimpleTestCase.

This commit is contained in:
David Wobrock 2023-12-23 23:05:05 +01:00 committed by Mariusz Felisiak
parent 45f778eded
commit 8fb0be3500
3 changed files with 66 additions and 0 deletions

View file

@ -250,6 +250,9 @@ Tests
* The new :meth:`.SimpleTestCase.assertNotInHTML` assertion allows testing that
an HTML fragment is not contained in the given HTML haystack.
* In order to enforce test isolation, database connections inside threads are
no longer allowed in :class:`~django.test.SimpleTestCase`.
URLs
~~~~