From 00c0d3c44ebc4e3461653ec96cd47023cc0a6e5b Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 3 May 2012 20:18:05 +0200 Subject: Made warning assertions work with or without -Wall python switch --- tests/regressiontests/requests/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/regressiontests/requests/tests.py') diff --git a/tests/regressiontests/requests/tests.py b/tests/regressiontests/requests/tests.py index d1c0896720..cf4c58b1f9 100644 --- a/tests/regressiontests/requests/tests.py +++ b/tests/regressiontests/requests/tests.py @@ -397,9 +397,8 @@ class RequestsTests(unittest.TestCase): 'wsgi.input': StringIO(payload) }) - with warnings.catch_warnings(record=True) as w: + with warnings.catch_warnings(record=True): self.assertEqual(request.body, request.raw_post_data) - self.assertEqual(len(w), 1) def test_POST_connection_error(self): """ -- cgit v1.3