()
| 940 | q = queue.Queue() |
| 941 | |
| 942 | def server(): |
| 943 | # Runs in a separate thread. |
| 944 | with socket.create_server(('localhost', 0)) as sock: |
| 945 | addr = sock.getsockname() |
| 946 | q.put(addr) |
| 947 | clt, _ = sock.accept() |
| 948 | clt.close() |
| 949 | |
| 950 | async def client(host, port): |
| 951 | reader, writer = await asyncio.open_connection(host, port) |
nothing calls this directly
no test coverage detected