MCPcopy Index your code
hub / github.com/RustPython/RustPython / outer

Method outer

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

Source from the content-addressed store, hash-verified

1144 self.assertStartsWith(str(cm.warnings[0].message), "unclosed <StreamWriter")
1145
1146 async def outer():
1147 srv = await asyncio.start_server(inner, socket_helper.HOSTv4, 0)
1148 async with srv:
1149 addr = srv.sockets[0].getsockname()
1150 with socket.create_connection(addr):
1151 # Give the loop some time to notice the connection
1152 await fut
1153
1154 messages = []
1155 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))

Callers 3

test_filenameMethod · 0.45
test_stacklevelMethod · 0.45

Calls 3

start_serverMethod · 0.45
getsocknameMethod · 0.45
create_connectionMethod · 0.45

Tested by

no test coverage detected