mirror of
https://github.com/django/django.git
synced 2024-12-22 09:05:43 +00:00
Fixed #35921 -- Fixed failure when running tests in parallel on postgres.
Follow-up to a060a22ee2
.
This commit is contained in:
parent
d8eb13f0f8
commit
d4b2e06a67
@ -32,7 +32,7 @@ class MigrationDataPersistenceClassSetup(TransactionTestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
# Simulate another TransactionTestCase having just torn down.
|
# Simulate another TransactionTestCase having just torn down.
|
||||||
call_command("flush", verbosity=0, interactive=False)
|
call_command("flush", verbosity=0, interactive=False, allow_cascade=True)
|
||||||
super().setUpClass()
|
super().setUpClass()
|
||||||
cls.book = Book.objects.first()
|
cls.book = Book.objects.first()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user