From f3b1c3bd06a0d3268068d32036b667c2d98bcc4e Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 2 Apr 2018 19:54:05 -0700 Subject: [PATCH] Refs #23406 -- Fixed "invalid escape sequence" warning in migrations test. --- tests/migrations/test_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py index eade230640..dcb6404818 100644 --- a/tests/migrations/test_loader.py +++ b/tests/migrations/test_loader.py @@ -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):