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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user