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

Method connect

Lib/test/test_asyncio/test_events.py:1592–1598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1590 pipeobj = io.open(rpipe, 'rb', 1024)
1591
1592 async def connect():
1593 t, p = await self.loop.connect_read_pipe(
1594 lambda: proto, pipeobj)
1595 self.assertIs(p, proto)
1596 self.assertIs(t, proto.transport)
1597 self.assertEqual(['INITIAL', 'CONNECTED'], proto.state)
1598 self.assertEqual(0, proto.nbytes)
1599
1600 self.loop.run_until_complete(connect())
1601

Callers 15

progMethod · 0.45
client_sockMethod · 0.45
serverMethod · 0.45
clientMethod · 0.45
clientMethod · 0.45
test_create_serverMethod · 0.45
test_server_closeMethod · 0.45
prepare_sendfileMethod · 0.45
clientMethod · 0.45

Calls 4

connect_read_pipeMethod · 0.45
assertIsMethod · 0.45
assertEqualMethod · 0.45
connect_write_pipeMethod · 0.45

Tested by

no test coverage detected