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

Method create_connection

Lib/test/test_httplib.py:2382–2383  ·  view source on GitHub ↗
(address, timeout=None, source_address=None)

Source from the content-addressed store, hash-verified

2380
2381 def _create_connection(self, response_text):
2382 def create_connection(address, timeout=None, source_address=None):
2383 return FakeSocket(response_text, host=address[0], port=address[1])
2384 return create_connection
2385
2386 def test_set_tunnel_host_port_headers_add_host_missing(self):

Callers 15

_create_socketMethod · 0.45
_create_socketMethod · 0.45
connectMethod · 0.45
ntransfercmdMethod · 0.45
_get_socketMethod · 0.45
_connectFunction · 0.45
makeSocketMethod · 0.45
_signal_readinessFunction · 0.45
test_subclassMethod · 0.45
test_recv_zeroMethod · 0.45

Calls 1

FakeSocketClass · 0.70

Tested by

no test coverage detected