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

Method test_connect_ex

Lib/test/test_ssl.py:2102–2109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2100 s.connect, self.server_addr)
2101
2102 def test_connect_ex(self):
2103 # Issue #11326: check connect_ex() implementation
2104 s = test_wrap_socket(socket.socket(socket.AF_INET),
2105 cert_reqs=ssl.CERT_REQUIRED,
2106 ca_certs=SIGNING_CA)
2107 self.addCleanup(s.close)
2108 self.assertEqual(0, s.connect_ex(self.server_addr))
2109 self.assertTrue(s.getpeercert())
2110
2111 def test_non_blocking_connect_ex(self):
2112 # Issue #11326: non-blocking connect_ex() should allow handshake

Callers

nothing calls this directly

Calls 7

test_wrap_socketFunction · 0.85
socketMethod · 0.80
addCleanupMethod · 0.80
connect_exMethod · 0.80
assertTrueMethod · 0.80
assertEqualMethod · 0.45
getpeercertMethod · 0.45

Tested by

no test coverage detected