summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-04 12:07:45 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-13 09:07:51 +0200
commitd106d07f732013eeb4667e73fa9cfd197e1d3484 (patch)
tree43ded365a1d7f6bb29c22044ec74cf3eee7be303 /tests
parent4c5236ef93db714b63eedcc5a162631a6ca1def9 (diff)
Advanced deprecation warnings for Django 3.2.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 8264d40684..d79b4b393e 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -24,7 +24,9 @@ else:
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 RemovedInDjango40Warning
+ from django.utils.deprecation import (
+ RemovedInDjango40Warning, RemovedInDjango41Warning,
+ )
from django.utils.log import DEFAULT_LOGGING
from django.utils.version import PY37
@@ -38,6 +40,7 @@ else:
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter("error", RemovedInDjango40Warning)
+warnings.simplefilter('error', RemovedInDjango41Warning)
# Make resource and runtime warning errors to ensure no usage of error prone
# patterns.
warnings.simplefilter("error", ResourceWarning)