mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #35921 -- Fixed failure when running tests in parallel on postgres.
Follow-up to a060a22ee2.
This commit is contained in:
@@ -32,7 +32,7 @@ class MigrationDataPersistenceClassSetup(TransactionTestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
# 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()
|
||||
cls.book = Book.objects.first()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user