MCPcopy Index your code
hub / github.com/python/cpython / run_test

Method run_test

Lib/test/test_asyncio/test_streams.py:850–857  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

848 await writer.wait_closed()
849
850 async def run_test():
851 server = await asyncio.start_server(
852 server_handler, socket_helper.HOSTv4, 0)
853 server_addr = server.sockets[0].getsockname()
854
855 await client(server_addr)
856 server.close()
857 await server.wait_closed()
858
859 messages = []
860 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))

Callers

nothing calls this directly

Calls 4

start_serverMethod · 0.45
getsocknameMethod · 0.45
closeMethod · 0.45
wait_closedMethod · 0.45

Tested by

no test coverage detected