Skip to content

Commit f8c0a93

Browse files
HectorCastillojacobtylerwalls
authored andcommitted
Fixed #37080 -- Filtered by generic deprecation warnings in runtests.py.
1 parent 0f4fff7 commit f8c0a93

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/runtests.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
from django.test.runner import get_max_test_processes, parallel_type
2929
from django.test.selenium import SeleniumTestCase, SeleniumTestCaseBase
3030
from django.test.utils import NullTimeKeeper, TimeKeeper, get_runner
31-
from django.utils.deprecation import RemovedInDjango70Warning
31+
from django.utils.deprecation import (
32+
RemovedAfterNextVersionWarning,
33+
RemovedInNextVersionWarning,
34+
)
3235
from django.utils.functional import classproperty
3336
from django.utils.log import DEFAULT_LOGGING
3437
from django.utils.version import PYPY
@@ -43,7 +46,8 @@
4346
warnings.filterwarnings("ignore", r"\(1003, *", category=MySQLdb.Warning)
4447

4548
# Make deprecation warnings errors to ensure no usage of deprecated features.
46-
warnings.simplefilter("error", RemovedInDjango70Warning)
49+
warnings.simplefilter("error", RemovedInNextVersionWarning)
50+
warnings.simplefilter("error", RemovedAfterNextVersionWarning)
4751
# Make resource and runtime warning errors to ensure no usage of error prone
4852
# patterns.
4953
warnings.simplefilter("error", ResourceWarning)

0 commit comments

Comments
 (0)