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

Method outer

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

Source from the content-addressed store, hash-verified

1186 self.assertStartsWith(str(cm.warnings[0].message), "unclosed <StreamWriter")
1187
1188 async def outer():
1189 srv = await asyncio.start_server(inner, socket_helper.HOSTv4, 0)
1190 async with srv:
1191 addr = srv.sockets[0].getsockname()
1192 with socket.create_connection(addr):
1193 # Give the loop some time to notice the connection
1194 await fut
1195
1196 messages = []
1197 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))

Callers

nothing calls this directly

Calls 3

start_serverMethod · 0.45
getsocknameMethod · 0.45
create_connectionMethod · 0.45

Tested by

no test coverage detected