mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate.
This commit is contained in:
@@ -499,7 +499,7 @@ class MakeMigrationsTests(MigrationTestBase):
|
||||
apps.register_model('migrations', UnserializableModel)
|
||||
|
||||
with self.temporary_migration_module() as migration_dir:
|
||||
with six.assertRaisesRegex(self, ValueError, r'Cannot serialize'):
|
||||
with self.assertRaisesMessage(ValueError, 'Cannot serialize'):
|
||||
call_command("makemigrations", "migrations", verbosity=0)
|
||||
|
||||
initial_file = os.path.join(migration_dir, "0001_initial.py")
|
||||
|
||||
Reference in New Issue
Block a user