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

Method test_timeout

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

Source from the content-addressed store, hash-verified

657 [bytearray(100)])
658
659 def test_timeout(self):
660 # Issue #8524: when creating an SSL socket, the timeout of the
661 # original socket should be retained.
662 for timeout in (None, 0.0, 5.0):
663 s = socket.socket(socket.AF_INET)
664 s.settimeout(timeout)
665 with test_wrap_socket(s) as ss:
666 self.assertEqual(timeout, ss.gettimeout())
667
668 def test_openssl111_deprecations(self):
669 options = [

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