From 7b8cacafd255eb5be172a4df355868f835030147 Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Wed, 5 Oct 2022 12:01:28 +0400 Subject: [PATCH] Return an assignment to data --- Lib/test/test_asyncio/test_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index abdd564fc00f62..61d5e984dfbfbb 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -949,7 +949,7 @@ async def test_wait_closed_on_close(self): wr.write(b'GET / HTTP/1.0\r\n\r\n') data = await rd.readline() self.assertEqual(data, b'HTTP/1.0 200 OK\r\n') - await rd.read() + data = await rd.read() self.assertTrue(data.endswith(b'\r\n\r\nTest message')) self.assertFalse(wr.is_closing()) wr.close()