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

Method test_timeout

Lib/test/test_ssl.py:578–585  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

576 [bytearray(100)])
577
578 def test_timeout(self):
579 # Issue #8524: when creating an SSL socket, the timeout of the
580 # original socket should be retained.
581 for timeout in (None, 0.0, 5.0):
582 s = socket.socket(socket.AF_INET)
583 s.settimeout(timeout)
584 with test_wrap_socket(s) as ss:
585 self.assertEqual(timeout, ss.gettimeout())
586
587 @unittest.expectedFailure # TODO: RUSTPYTHON
588 def test_openssl111_deprecations(self):

Callers

nothing calls this directly

Calls 5

test_wrap_socketFunction · 0.85
socketMethod · 0.80
settimeoutMethod · 0.45
assertEqualMethod · 0.45
gettimeoutMethod · 0.45

Tested by

no test coverage detected