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

Method connect

Lib/test/test_socket.py:5815–5816  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

5813
5814 class MockSocket(socket.socket):
5815 def connect(self, *args):
5816 raise TimeoutError('timed out')
5817
5818 @contextlib.contextmanager
5819 def mocked_socket_module(self):

Calls 1

TimeoutErrorClass · 0.85

Tested by

no test coverage detected