mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Advanced deprecation warnings for Django 3.2.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user