summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-15 10:43:10 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-18 22:12:40 +0200
commitcaf87b4d4278602812fd3bb8b0d78dfca18db28d (patch)
tree85c9458067b1a4647ddc01df031e33b164fe091c /tests
parentf72f420f17c1bf6aea4022ecdb9b5f53a46597cc (diff)
Advanced deprecation warnings for Django 5.1.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 5d138ffb0e..b5f499fe7e 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -28,10 +28,7 @@ else:
from django.test.runner import get_max_test_processes, parallel_type
from django.test.selenium import SeleniumTestCaseBase
from django.test.utils import NullTimeKeeper, TimeKeeper, get_runner
- from django.utils.deprecation import (
- RemovedInDjango51Warning,
- RemovedInDjango60Warning,
- )
+ from django.utils.deprecation import RemovedInDjango60Warning
from django.utils.log import DEFAULT_LOGGING
from django.utils.version import PY312
@@ -45,7 +42,6 @@ else:
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter("error", RemovedInDjango60Warning)
-warnings.simplefilter("error", RemovedInDjango51Warning)
# Make resource and runtime warning errors to ensure no usage of error prone
# patterns.
warnings.simplefilter("error", ResourceWarning)