mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Refs #23406 -- Fixed "invalid escape sequence" warning in migrations test.
This commit is contained in:
parent
597aba6d67
commit
f3b1c3bd06
@ -523,7 +523,7 @@ class PycLoaderTests(MigrationTestBase):
|
||||
"""
|
||||
with self.temporary_migration_module(module='migrations.test_migrations_bad_pyc'):
|
||||
msg = (
|
||||
"Couldn't import '\w+.migrations.0001_initial' as it appears "
|
||||
r"Couldn't import '\w+.migrations.0001_initial' as it appears "
|
||||
"to be a stale .pyc file."
|
||||
)
|
||||
with self.assertRaisesRegex(ImportError, msg):
|
||||
|
Loading…
Reference in New Issue
Block a user