1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Made warning assertions work with or without -Wall python switch

This commit is contained in:
Claude Paroz
2012-05-03 20:18:05 +02:00
parent 10cf3c6427
commit 00c0d3c44e
5 changed files with 7 additions and 6 deletions

View File

@@ -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):
"""