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

Method connect

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

Source from the content-addressed store, hash-verified

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

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