Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adjust d7853c5 to not show ignorable warnings when running tests.

  • Loading branch information...
commit 5e99a3d41b5d7b7d8d135283fd25262fdcb1b7fd 1 parent a3b2136
@malcolmt malcolmt authored
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(), {})
Please sign in to comment.
Something went wrong with that request. Please try again.