mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
@@ -754,7 +754,7 @@ class StreamingHttpResponseTests(SimpleTestCase):
|
||||
"serve them asynchronously. Use an asynchronous iterator instead."
|
||||
)
|
||||
with self.assertWarnsMessage(Warning, msg):
|
||||
self.assertEqual(b"hello", await r.__aiter__().__anext__())
|
||||
self.assertEqual(b"hello", await anext(aiter(r)))
|
||||
|
||||
|
||||
class FileCloseTests(SimpleTestCase):
|
||||
|
||||
Reference in New Issue
Block a user