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

Method test_connect_ex

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

Source from the content-addressed store, hash-verified

1883 s.connect, self.server_addr)
1884
1885 def test_connect_ex(self):
1886 # Issue #11326: check connect_ex() implementation
1887 s = test_wrap_socket(socket.socket(socket.AF_INET),
1888 cert_reqs=ssl.CERT_REQUIRED,
1889 ca_certs=SIGNING_CA)
1890 self.addCleanup(s.close)
1891 self.assertEqual(0, s.connect_ex(self.server_addr))
1892 self.assertTrue(s.getpeercert())
1893
1894 def test_non_blocking_connect_ex(self):
1895 # 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
assertTrueMethod · 0.80
assertEqualMethod · 0.45
connect_exMethod · 0.45
getpeercertMethod · 0.45

Tested by

no test coverage detected