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

Method test_set_inheritable

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

Source from the content-addressed store, hash-verified

6599 self.assertEqual(newsock.get_inheritable(), False)
6600
6601 def test_set_inheritable(self):
6602 sock = socket.socket()
6603 with sock:
6604 sock.set_inheritable(True)
6605 self.assertEqual(sock.get_inheritable(), True)
6606
6607 sock.set_inheritable(False)
6608 self.assertEqual(sock.get_inheritable(), False)
6609
6610 @unittest.skipIf(fcntl is None, "need fcntl")
6611 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