summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-04-24 12:06:04 -0400
committerTim Graham <timograham@gmail.com>2018-04-24 12:06:04 -0400
commitc591bc3ccece1514d6b419826c7fa36ada9d9213 (patch)
tree4ac6e4763eb26a85a025a067c0dc8538362ded10 /tests
parent3aae43d800a15db308cea0ea69729122c5c1d215 (diff)
Fixed "invalid escape sequence" warning in runtests.py.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py2
1 files changed, 1 insertions, 1 deletions
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)