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

Method testAcceptTimeout

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

Source from the content-addressed store, hash-verified

222 self._sock_operation(1, 1.5, 'recv', 1024)
223
224 def testAcceptTimeout(self):
225 # Test accept() timeout
226 socket_helper.bind_port(self.sock, self.localhost)
227 self.sock.listen()
228 self._sock_operation(1, 1.5, 'accept')
229
230 def testSend(self):
231 # Test send() timeout

Callers

nothing calls this directly

Calls 2

_sock_operationMethod · 0.80
listenMethod · 0.45

Tested by

no test coverage detected