()
| 898 | q = queue.Queue() |
| 899 | |
| 900 | def server(): |
| 901 | # Runs in a separate thread. |
| 902 | with socket.create_server(('localhost', 0)) as sock: |
| 903 | addr = sock.getsockname() |
| 904 | q.put(addr) |
| 905 | clt, _ = sock.accept() |
| 906 | clt.close() |
| 907 | |
| 908 | async def client(host, port): |
| 909 | reader, writer = await asyncio.open_connection(host, port) |
nothing calls this directly
no test coverage detected