mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Inserted more simplefilter calls to be sure warnings are emitted.
Thanks to Florian Apolloner for suggesting the patch.
This commit is contained in:
@@ -415,6 +415,7 @@ class RequestsTests(unittest.TestCase):
|
||||
'wsgi.input': ExplodingStringIO(payload)})
|
||||
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
warnings.simplefilter("always")
|
||||
with self.assertRaises(UnreadablePostError):
|
||||
request.raw_post_data
|
||||
self.assertEqual(len(w), 1)
|
||||
|
||||
Reference in New Issue
Block a user