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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user