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

Method _connected_pair

Lib/test/test_epoll.py:52–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 skt.close()
51
52 def _connected_pair(self):
53 client = socket.socket()
54 client.setblocking(False)
55 try:
56 client.connect(('127.0.0.1', self.serverSocket.getsockname()[1]))
57 except OSError as e:
58 self.assertEqual(e.args[0], errno.EINPROGRESS)
59 else:
60 raise AssertionError("Connect should have raised EINPROGRESS")
61 server, addr = self.serverSocket.accept()
62
63 self.connections.extend((client, server))
64 return client, server
65
66 def test_create(self):
67 try:

Callers 4

test_addMethod · 0.95
test_fromfdMethod · 0.95
test_control_and_waitMethod · 0.95

Calls 7

socketMethod · 0.80
setblockingMethod · 0.45
connectMethod · 0.45
getsocknameMethod · 0.45
assertEqualMethod · 0.45
acceptMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected