summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/contrib/sessions/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/sessions/tests.py b/django/contrib/sessions/tests.py
index f31c056e65..6311421551 100644
--- a/django/contrib/sessions/tests.py
+++ b/django/contrib/sessions/tests.py
@@ -302,6 +302,7 @@ class CacheDBSessionTests(SessionTestsMixin, TestCase):
def test_load_overlong_key(self):
with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter("always")
self.session._session_key = (string.ascii_letters + string.digits) * 20
self.assertEqual(self.session.load(), {})
self.assertEqual(len(w), 1)