MCPcopy 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):

Calls 1

TimeoutErrorClass · 0.85

Tested by

no test coverage detected