mirror of
https://github.com/django/django.git
synced 2025-12-09 19:08:06 +00:00
Advanced deprecation warnings for Django 6.0.
This commit is contained in:
parent
17ae61a5d4
commit
7bc88c3c15
3 changed files with 14 additions and 6 deletions
|
|
@ -29,8 +29,8 @@ else:
|
|||
from django.test.selenium import SeleniumTestCase, SeleniumTestCaseBase
|
||||
from django.test.utils import NullTimeKeeper, TimeKeeper, get_runner
|
||||
from django.utils.deprecation import (
|
||||
RemovedInDjango60Warning,
|
||||
RemovedInDjango61Warning,
|
||||
RemovedInDjango70Warning,
|
||||
)
|
||||
from django.utils.functional import classproperty
|
||||
from django.utils.log import DEFAULT_LOGGING
|
||||
|
|
@ -46,7 +46,7 @@ else:
|
|||
warnings.filterwarnings("ignore", r"\(1003, *", category=MySQLdb.Warning)
|
||||
|
||||
# Make deprecation warnings errors to ensure no usage of deprecated features.
|
||||
warnings.simplefilter("error", RemovedInDjango60Warning)
|
||||
warnings.simplefilter("error", RemovedInDjango70Warning)
|
||||
warnings.simplefilter("error", RemovedInDjango61Warning)
|
||||
# Make resource and runtime warning errors to ensure no usage of error prone
|
||||
# patterns.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue