summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt <matt.leach25@gmail.com>2015-01-28 14:05:47 +0000
committerSimon Charette <charette.s@gmail.com>2015-01-29 14:36:01 -0500
commit55c76f4e3bab74c8544b72d11a99e94a1c2cfbce (patch)
treed70225b9d2b64e0d4e8f0d18a59665334ccfa95e
parentf60973111806100d284d41c12206c04740063549 (diff)
Fixed #24223 -- Prevented a session test from leaking.
-rw-r--r--django/contrib/sessions/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/contrib/sessions/tests.py b/django/contrib/sessions/tests.py
index 24d7ac7367..f39d46a8f6 100644
--- a/django/contrib/sessions/tests.py
+++ b/django/contrib/sessions/tests.py
@@ -513,7 +513,7 @@ class CacheSessionTests(SessionTestsMixin, unittest.TestCase):
self.assertNotEqual(caches['sessions'].get(self.session.cache_key), None)
-class SessionMiddlewareTests(unittest.TestCase):
+class SessionMiddlewareTests(TestCase):
@override_settings(SESSION_COOKIE_SECURE=True)
def test_secure_session_cookie(self):
@@ -605,7 +605,8 @@ class SessionMiddlewareTests(unittest.TestCase):
)
-class CookieSessionTests(SessionTestsMixin, TestCase):
+# Don't need DB flushing for these tests, so can use unittest.TestCase as base class
+class CookieSessionTests(SessionTestsMixin, unittest.TestCase):
backend = CookieSession