Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Mathijs de Bruin authored aaugustin committed

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  django/contrib/sessions/tests.py
3  django/contrib/sessions/tests.py
@@ -468,6 +468,9 @@ def test_default_cache(self):
468 468
         },
469 469
     }, SESSION_CACHE_ALIAS='sessions')
470 470
     def test_non_default_cache(self):
  471
+        # Re-initalize the session backend to make use of overridden settings.
  472
+        self.session = self.backend()
  473
+
471 474
         self.session.save()
472 475
         self.assertEqual(get_cache('default').get(self.session.cache_key), None)
473 476
         self.assertNotEqual(get_cache('sessions').get(self.session.cache_key), None)

0 notes on commit 8c1cc4b

Please sign in to comment.
Something went wrong with that request. Please try again.