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

Advanced deprecation warnings for Django 5.0.

This commit is contained in:
Mariusz Felisiak
2023-01-13 10:05:14 +01:00
parent 003081468e
commit f39f120302
3 changed files with 14 additions and 6 deletions

View File

@@ -29,8 +29,8 @@ else:
from django.test.selenium import SeleniumTestCaseBase
from django.test.utils import NullTimeKeeper, TimeKeeper, get_runner
from django.utils.deprecation import (
RemovedInDjango50Warning,
RemovedInDjango51Warning,
RemovedInDjango60Warning,
)
from django.utils.log import DEFAULT_LOGGING
@@ -43,7 +43,7 @@ else:
warnings.filterwarnings("ignore", r"\(1003, *", category=MySQLdb.Warning)
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter("error", RemovedInDjango50Warning)
warnings.simplefilter("error", RemovedInDjango60Warning)
warnings.simplefilter("error", RemovedInDjango51Warning)
# Make resource and runtime warning errors to ensure no usage of error prone
# patterns.