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

Method testInheritFlagsBlocking

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

Source from the content-addressed store, hash-verified

5365 pass
5366
5367 def testInheritFlagsBlocking(self):
5368 # bpo-7995: accept() on a listening socket with a timeout and the
5369 # default timeout is None, the resulting socket must be blocking.
5370 with socket_setdefaulttimeout(None):
5371 self.serv.settimeout(10)
5372 conn, addr = self.serv.accept()
5373 self.addCleanup(conn.close)
5374 self.assertIsNone(conn.gettimeout())
5375
5376 def _testInheritFlagsBlocking(self):
5377 self.cli.connect((HOST, self.port))

Callers

nothing calls this directly

Calls 6

socket_setdefaulttimeoutFunction · 0.85
addCleanupMethod · 0.80
assertIsNoneMethod · 0.80
settimeoutMethod · 0.45
acceptMethod · 0.45
gettimeoutMethod · 0.45

Tested by

no test coverage detected