diff options
Diffstat (limited to 'tests/regressiontests/context_processors')
| -rw-r--r-- | tests/regressiontests/context_processors/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/context_processors/tests.py b/tests/regressiontests/context_processors/tests.py index 2b5ddbe94c..5a89561bb6 100644 --- a/tests/regressiontests/context_processors/tests.py +++ b/tests/regressiontests/context_processors/tests.py @@ -48,14 +48,14 @@ class AuthContextProcessorTests(TestCase): fixtures = ['context-processors-users.xml'] def setUp(self): + self.save_warnings_state() warnings.filterwarnings('ignore', category=DeprecationWarning, module='django.contrib.auth.models') warnings.filterwarnings('ignore', category=DeprecationWarning, module='django.core.context_processors') def tearDown(self): - warnings.resetwarnings() - warnings.simplefilter('ignore', PendingDeprecationWarning) + self.restore_warnings_state() def test_session_not_accessed(self): """ |
