From c591bc3ccece1514d6b419826c7fa36ada9d9213 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 24 Apr 2018 12:06:04 -0400 Subject: [PATCH] Fixed "invalid escape sequence" warning in runtests.py. --- tests/runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.py b/tests/runtests.py index c3d5ee427f..b1baf8d31e 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -26,7 +26,7 @@ except ImportError: pass else: # Ignore informational warnings from QuerySet.explain(). - warnings.filterwarnings('ignore', '\(1003, *', category=MySQLdb.Warning) + warnings.filterwarnings('ignore', r'\(1003, *', category=MySQLdb.Warning) # Make deprecation warnings errors to ensure no usage of deprecated features. warnings.simplefilter("error", RemovedInDjango30Warning)