diff options
| author | Tim Graham <timograham@gmail.com> | 2017-01-19 10:56:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-19 10:56:00 -0500 |
| commit | e5c67f099159f522d140148fa1a6c876d38288f4 (patch) | |
| tree | 2cdf7482ffccbffa2784c2e9f1b09cf8970c8ad4 /tests/deprecation/tests.py | |
| parent | 56aee8d59f2946343cb83de6fde08adcc236a837 (diff) | |
Refs #23919 -- Removed reset_warning_registry() workaround for Python < 3.4.2.
Diffstat (limited to 'tests/deprecation/tests.py')
| -rw-r--r-- | tests/deprecation/tests.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py index 220010d909..1afd52f943 100644 --- a/tests/deprecation/tests.py +++ b/tests/deprecation/tests.py @@ -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') |
