Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ connect
Method
connect
Lib/test/test_socket.py:5918–5919 ·
view source on GitHub ↗
(self, *args)
Source
from the content-addressed store, hash-verified
5916
5917
class
MockSocket(socket.socket):
5918
def
connect(self, *args):
5919
raise
TimeoutError(
'timed out'
)
5920
5921
@contextlib.contextmanager
5922
def
mocked_socket_module(self):
Callers
15
clientSetUp
Method · 0.45
clientSetUp
Method · 0.45
clientSetUp
Method · 0.45
testBCM
Method · 0.45
testAutoBindSock
Method · 0.45
testCreateHyperVSocketAddrNotTupleFailure
Method · 0.45
testCreateHyperVSocketAddrNotTupleOf2StrsFailure
Method · 0.45
testCreateHyperVSocketAddrNotTupleOfStrsFailure
Method · 0.45
testCreateHyperVSocketAddrVmIdNotValidUUIDFailure
Method · 0.45
testCreateHyperVSocketAddrServiceIdNotValidUUIDFailure
Method · 0.45
doConnect
Method · 0.45
_testClose
Method · 0.45
Calls
1
TimeoutError
Class · 0.85
Tested by
no test coverage detected