diff --git a/django/contrib/auth/tests/context_processors.py b/django/contrib/auth/tests/context_processors.py index 8f77940a612c4..0eb5e5eb3c330 100644 --- a/django/contrib/auth/tests/context_processors.py +++ b/django/contrib/auth/tests/context_processors.py @@ -29,6 +29,8 @@ def test_session_not_accessed(self): response = self.client.get('/auth_processor_no_attr_access/') self.assertContains(response, "Session not accessed") + context._standard_context_processors = None + @override_settings( MIDDLEWARE_CLASSES=global_settings.MIDDLEWARE_CLASSES, TEMPLATE_CONTEXT_PROCESSORS=global_settings.TEMPLATE_CONTEXT_PROCESSORS, @@ -43,6 +45,8 @@ def test_session_is_accessed(self): response = self.client.get('/auth_processor_attr_access/') self.assertContains(response, "Session accessed") + context._standard_context_processors = None + def test_perms_attrs(self): self.client.login(username='super', password='secret') response = self.client.get('/auth_processor_perms/')