1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

[1.11.x] Fixed #25192 -- Fixed squashmigrations crash with RunPython.noop on Python 2.

Thanks Adam Johnson for review.
This commit is contained in:
Shai Berger
2017-01-29 00:33:13 +02:00
committed by Tim Graham
parent 76a99f1b9a
commit 437e0ba533
5 changed files with 43 additions and 0 deletions

View File

@@ -1392,3 +1392,7 @@ class SquashMigrationsTests(MigrationTestBase):
)
with self.assertRaisesMessage(CommandError, msg):
call_command("squashmigrations", "migrations", "0003", "0002", interactive=False, verbosity=0)
def test_squashmigrations_squashes_noop(self):
with self.temporary_migration_module(module="migrations.test_migrations_squash_noop"):
call_command("squashmigrations", "migrations", "0002", interactive=False, verbosity=0)