Skip to content
Merged
Prev Previous commit
Next Next commit
Fix a wrongly used address
  • Loading branch information
arhadthedev committed May 31, 2022
commit 9f32482796c85955c2e074e7ea205d22505b3b4d
3 changes: 2 additions & 1 deletion Lib/test/test_asyncio/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ async def handle_client_callback(client_reader, client_writer):
handle_client_callback,
host=socket_helper.HOSTv4
)
address, port = server.sockets[0].getsockname()
addr = server.sockets[0].getsockname()
reader, writer = await asyncio.open_connection(*addr)
msg = await client(addr)
server.close()
await server.wait_closed()
Expand Down