Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adjust d7853c5 to not show ignorable warnings when running tests.

  • Loading branch information...
commit 5e99a3d41b5d7b7d8d135283fd25262fdcb1b7fd 1 parent a3b2136
Malcolm Tredinnick authored September 08, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/contrib/sessions/tests.py
2  django/contrib/sessions/tests.py
@@ -304,6 +304,7 @@ def test_exists_searches_cache_first(self):
304 304
     def test_load_overlong_key(self):
305 305
         # Some backends might issue a warning
306 306
         with warnings.catch_warnings():
  307
+            warnings.simplefilter("ignore")
307 308
             self.session._session_key = (string.ascii_letters + string.digits) * 20
308 309
             self.assertEqual(self.session.load(), {})
309 310
 
@@ -353,6 +354,7 @@ class CacheSessionTests(SessionTestsMixin, unittest.TestCase):
353 354
     def test_load_overlong_key(self):
354 355
         # Some backends might issue a warning
355 356
         with warnings.catch_warnings():
  357
+            warnings.simplefilter("ignore")
356 358
             self.session._session_key = (string.ascii_letters + string.digits) * 20
357 359
             self.assertEqual(self.session.load(), {})
358 360
 

0 notes on commit 5e99a3d

Please sign in to comment.
Something went wrong with that request. Please try again.