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

Method testRecvTimeout

Lib/test/test_timeout.py:218–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 self._sock_operation(1, 0.001, 'connect', self.addr_remote)
217
218 def testRecvTimeout(self):
219 # Test recv() timeout
220 with socket_helper.transient_internet(self.addr_remote[0]):
221 self.sock.connect(self.addr_remote)
222 self._sock_operation(1, 1.5, 'recv', 1024)
223
224 def testAcceptTimeout(self):
225 # Test accept() timeout

Callers

nothing calls this directly

Calls 2

_sock_operationMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected