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

Method _testLargeTimeout

Lib/test/test_socket.py:5472–5483  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5470 msg = conn.recv(len(MSG))
5471
5472 def _testLargeTimeout(self):
5473 # test sendall() with large timeout
5474 if _testcapi is not None:
5475 large_timeout = _testcapi.INT_MAX + 1
5476 else:
5477 large_timeout = 2147483648
5478 self.cli.connect((HOST, self.port))
5479 try:
5480 self.cli.settimeout(large_timeout)
5481 except OverflowError:
5482 return
5483 self.cli.sendall(MSG)
5484
5485
5486class FileObjectClassTestCase(SocketConnectedTest):

Callers

nothing calls this directly

Calls 3

connectMethod · 0.45
settimeoutMethod · 0.45
sendallMethod · 0.45

Tested by

no test coverage detected