Author: claudep
Date: 2012-03-14 13:46:52 -0700 (Wed, 14 Mar 2012)
New Revision: 17736

Modified:
   django/trunk/django/contrib/auth/tests/context_processors.py
Log:
Reset template context processors cache after tests. Refs #17848.

Modified: django/trunk/django/contrib/auth/tests/context_processors.py
===================================================================
--- django/trunk/django/contrib/auth/tests/context_processors.py        
2012-03-14 19:06:23 UTC (rev 17735)
+++ django/trunk/django/contrib/auth/tests/context_processors.py        
2012-03-14 20:46:52 UTC (rev 17736)
@@ -29,6 +29,8 @@
         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 @@
         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/')

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to