diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-05-03 20:18:05 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-05-03 20:18:05 +0200 |
| commit | 00c0d3c44ebc4e3461653ec96cd47023cc0a6e5b (patch) | |
| tree | 050b07dde4949a585f59572eaa1d79d4c3427064 /django | |
| parent | 10cf3c64273db407402ea9723569dfc8d059e186 (diff) | |
Made warning assertions work with or without -Wall python switch
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/sessions/tests.py | 1 |
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) |
