1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Advanced deprecation warnings for Django 4.1.

This commit is contained in:
Mariusz Felisiak
2021-09-16 09:58:12 +02:00
parent 737fa72ae3
commit 8b6d0333cf
3 changed files with 5 additions and 8 deletions

View File

@@ -26,9 +26,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 (
RemovedInDjango41Warning, RemovedInDjango50Warning,
)
from django.utils.deprecation import RemovedInDjango50Warning
from django.utils.log import DEFAULT_LOGGING
try:
@@ -41,7 +39,6 @@ else:
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter('error', RemovedInDjango50Warning)
warnings.simplefilter('error', RemovedInDjango41Warning)
# Make resource and runtime warning errors to ensure no usage of error prone
# patterns.
warnings.simplefilter("error", ResourceWarning)