Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed regression introduced in 146ed13.

As override_settings was used after the initialization of the session backend,
we need to use a new session backend here.
  • Loading branch information...
commit 8c1cc4b3b04f639ae40bc806380bc4a9dd568eb0 1 parent 5278776
@dokterbob dokterbob authored aaugustin committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/contrib/sessions/tests.py
View
3  django/contrib/sessions/tests.py
@@ -468,6 +468,9 @@ def test_default_cache(self):
},
}, SESSION_CACHE_ALIAS='sessions')
def test_non_default_cache(self):
+ # Re-initalize the session backend to make use of overridden settings.
+ self.session = self.backend()
+
self.session.save()
self.assertEqual(get_cache('default').get(self.session.cache_key), None)
self.assertNotEqual(get_cache('sessions').get(self.session.cache_key), None)
Please sign in to comment.
Something went wrong with that request. Please try again.