summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-27 21:00:33 -0500
committerTim Graham <timograham@gmail.com>2019-01-17 11:15:27 -0500
commitf5060a138583c46e14231b7ca1d256dc1e42f9f9 (patch)
tree085be9ec3bde6f1ef1881b3ec515d6c28ba30d7c /tests
parentda1de1615c4d498d7de015dc0028ad4be220df15 (diff)
Advanced deprecation warnings for Django 3.0.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 8c30b9d802..871b6c202d 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -19,7 +19,7 @@ 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 (
- RemovedInDjango30Warning, RemovedInDjango31Warning,
+ RemovedInDjango31Warning, RemovedInDjango40Warning,
)
from django.utils.log import DEFAULT_LOGGING
@@ -32,7 +32,7 @@ else:
warnings.filterwarnings('ignore', r'\(1003, *', category=MySQLdb.Warning)
# Make deprecation warnings errors to ensure no usage of deprecated features.
-warnings.simplefilter("error", RemovedInDjango30Warning)
+warnings.simplefilter("error", RemovedInDjango40Warning)
warnings.simplefilter('error', RemovedInDjango31Warning)
# Make runtime warning errors to ensure no usage of error prone patterns.
warnings.simplefilter("error", RuntimeWarning)