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 /tests/regressiontests/requests/tests.py | |
| parent | 10cf3c64273db407402ea9723569dfc8d059e186 (diff) | |
Made warning assertions work with or without -Wall python switch
Diffstat (limited to 'tests/regressiontests/requests/tests.py')
| -rw-r--r-- | tests/regressiontests/requests/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
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): """ |
