From 5e99a3d41b5d7b7d8d135283fd25262fdcb1b7fd Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 8 Sep 2012 20:28:31 -0400 Subject: [PATCH] Adjust d7853c5 to not show ignorable warnings when running tests. --- django/contrib/sessions/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/contrib/sessions/tests.py b/django/contrib/sessions/tests.py index dbc68652ac..9aa602f416 100644 --- a/django/contrib/sessions/tests.py +++ b/django/contrib/sessions/tests.py @@ -304,6 +304,7 @@ class CacheDBSessionTests(SessionTestsMixin, TestCase): def test_load_overlong_key(self): # Some backends might issue a warning with warnings.catch_warnings(): + warnings.simplefilter("ignore") self.session._session_key = (string.ascii_letters + string.digits) * 20 self.assertEqual(self.session.load(), {}) @@ -353,6 +354,7 @@ class CacheSessionTests(SessionTestsMixin, unittest.TestCase): def test_load_overlong_key(self): # Some backends might issue a warning with warnings.catch_warnings(): + warnings.simplefilter("ignore") self.session._session_key = (string.ascii_letters + string.digits) * 20 self.assertEqual(self.session.load(), {})