mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed "invalid escape sequence" warning in runtests.py.
This commit is contained in:
@@ -26,7 +26,7 @@ except ImportError:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# Ignore informational warnings from QuerySet.explain().
|
# 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.
|
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||||
warnings.simplefilter("error", RemovedInDjango30Warning)
|
warnings.simplefilter("error", RemovedInDjango30Warning)
|
||||||
|
|||||||
Reference in New Issue
Block a user