diff options
author | Nick Pope <nick@nickpope.me.uk> | 2023-01-18 12:45:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 13:45:07 +0100 |
commit | 26a395f27d86bbf65f330851c8136c33694ac867 (patch) | |
tree | 70c1ab33cf0740889a7d6bccfa7e7e056f67211f /tests/httpwrappers | |
parent | a04565845ae3e766a1a4ec827a6e1f4fac335c3a (diff) | |
download | django-26a395f27d86bbf65f330851c8136c33694ac867.tar.gz |
Refs #34233 -- Used aiter() and anext().
Available since Python 3.10.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r-- | tests/httpwrappers/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index fa2c8fd5d2..0a41ea5ec6 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -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): |