summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-07-06 14:34:33 -0400
committerTim Graham <timograham@gmail.com>2016-07-06 14:34:33 -0400
commita81fe17b3e5bb96c849c4044d6688c08848dec19 (patch)
tree642ba0e07e8ed76551fd1ac0b70e7071e27f9f92
parenta86fdfaa3b1bb6464cb071a66988d557562458d5 (diff)
Promoted RemovedInDjango21Warning to error in Django's test suite.
-rwxr-xr-xtests/runtests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 07f2dc7a84..2f9cabb6e5 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -19,11 +19,14 @@ from django.test.selenium import SeleniumTestCaseBase
from django.test.utils import get_runner
from django.utils import six
from django.utils._os import upath
-from django.utils.deprecation import RemovedInDjango20Warning
+from django.utils.deprecation import (
+ RemovedInDjango20Warning, RemovedInDjango21Warning,
+)
from django.utils.log import DEFAULT_LOGGING
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter("error", RemovedInDjango20Warning)
+warnings.simplefilter("error", RemovedInDjango21Warning)
# Make runtime warning errors to ensure no usage of error prone patterns.
warnings.simplefilter("error", RuntimeWarning)
# Ignore known warnings in test dependencies.