1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed "invalid escape sequence" warning in runtests.py.

This commit is contained in:
Tim Graham 2018-04-24 12:06:04 -04:00
parent 3aae43d800
commit c591bc3cce

View File

@ -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)