mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Advanced deprecation warnings for Django 5.1.
This commit is contained in:
parent
f72f420f17
commit
caf87b4d42
3 changed files with 7 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue