mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
committed by
Tim Graham
parent
232a1d297c
commit
fc8e1e0c10
@@ -360,7 +360,7 @@ class MakeMigrationsTests(MigrationTestBase):
|
||||
self.assertIn('\\u201c\\xd0j\\xe1\\xf1g\\xf3\\u201d', content) # title.default
|
||||
|
||||
def test_failing_migration(self):
|
||||
#21280 - If a migration fails to serialize, it shouldn't generate an empty file.
|
||||
# If a migration fails to serialize, it shouldn't generate an empty file. #21280
|
||||
apps.register_model('migrations', UnserializableModel)
|
||||
|
||||
with six.assertRaisesRegex(self, ValueError, r'Cannot serialize'):
|
||||
|
||||
Reference in New Issue
Block a user