mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23919 -- Removed reset_warning_registry() workaround for Python < 3.4.2.
This commit is contained in:
parent
56aee8d59f
commit
e5c67f0991
2 changed files with 0 additions and 16 deletions
|
@ -1,7 +1,6 @@
|
|||
import warnings
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.test.utils import reset_warning_registry
|
||||
from django.utils.deprecation import (
|
||||
DeprecationInstanceCheck, RemovedInNextVersionWarning, RenameMethodsBase,
|
||||
)
|
||||
|
@ -24,7 +23,6 @@ class RenameMethodsTests(SimpleTestCase):
|
|||
Ensure a warning is raised upon class definition to suggest renaming
|
||||
the faulty method.
|
||||
"""
|
||||
reset_warning_registry()
|
||||
with warnings.catch_warnings(record=True) as recorded:
|
||||
warnings.simplefilter('always')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue