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

Method main

Lib/test/test_asyncio/test_server.py:97–103  ·  view source on GitHub ↗
(srv)

Source from the content-addressed store, hash-verified

95 await writer.wait_closed()
96
97 async def main(srv):
98 async with srv:
99 self.assertFalse(srv.is_serving())
100 await srv.start_serving()
101 self.assertTrue(srv.is_serving())
102 started.set()
103 await srv.serve_forever()
104
105 with test_utils.unix_socket_path() as addr:
106 srv = self.loop.run_until_complete(asyncio.start_unix_server(

Callers

nothing calls this directly

Calls 6

assertFalseMethod · 0.80
assertTrueMethod · 0.80
is_servingMethod · 0.45
start_servingMethod · 0.45
setMethod · 0.45
serve_foreverMethod · 0.45

Tested by

no test coverage detected