Browse files

Adjust d7853c5 to not show ignorable warnings when running tests.

  • Loading branch information...
1 parent a3b2136 commit 5e99a3d41b5d7b7d8d135283fd25262fdcb1b7fd @malcolmt malcolmt committed Sep 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/contrib/sessions/tests.py
View
2 django/contrib/sessions/tests.py
@@ -304,6 +304,7 @@ def test_exists_searches_cache_first(self):
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(), {})

0 comments on commit 5e99a3d

Please sign in to comment.