summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_loader.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py
index b46f35f7ed..b8c2cd8142 100644
--- a/tests/migrations/test_loader.py
+++ b/tests/migrations/test_loader.py
@@ -378,7 +378,10 @@ class LoaderTests(TestCase):
loader.check_consistent_history(connection)
recorder = MigrationRecorder(connection)
recorder.record_applied('migrations', '0002_second')
- msg = "Migration migrations.0002_second is applied before its dependency migrations.0001_initial"
+ msg = (
+ "Migration migrations.0002_second is applied before its dependency "
+ "migrations.0001_initial on database 'default'."
+ )
with self.assertRaisesMessage(InconsistentMigrationHistory, msg):
loader.check_consistent_history(connection)