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

Method test_set_inheritable

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

Source from the content-addressed store, hash-verified

6496 self.assertEqual(newsock.get_inheritable(), False)
6497
6498 def test_set_inheritable(self):
6499 sock = socket.socket()
6500 with sock:
6501 sock.set_inheritable(True)
6502 self.assertEqual(sock.get_inheritable(), True)
6503
6504 sock.set_inheritable(False)
6505 self.assertEqual(sock.get_inheritable(), False)
6506
6507 @unittest.skipIf(fcntl is None, "need fcntl")
6508 def test_get_inheritable_cloexec(self):

Callers

nothing calls this directly

Calls 4

socketMethod · 0.80
set_inheritableMethod · 0.80
assertEqualMethod · 0.45
get_inheritableMethod · 0.45

Tested by

no test coverage detected