summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-09-02 21:55:59 -0400
committerTim Graham <timograham@gmail.com>2017-09-22 12:51:19 -0400
commit4a461d49c775331ed52418f007974d61be1e06b9 (patch)
tree3a4b5d6a96c1fc395fcaa3e263290386f9c81525 /tests
parent5446b72003790fc98bd926f7196b26cc5db63c5a (diff)
Advanced deprecation warnings for Django 2.1.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 7f4f1670c5..57b8a45404 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -17,14 +17,11 @@ from django.test import TestCase, TransactionTestCase
from django.test.runner import default_test_processes
from django.test.selenium import SeleniumTestCaseBase
from django.test.utils import get_runner
-from django.utils.deprecation import (
- RemovedInDjango21Warning, RemovedInDjango30Warning,
-)
+from django.utils.deprecation import RemovedInDjango30Warning
from django.utils.log import DEFAULT_LOGGING
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter("error", RemovedInDjango30Warning)
-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.