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

Method test_dup

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

Source from the content-addressed store, hash-verified

6591 self.assertEqual(sock.get_inheritable(), False)
6592
6593 def test_dup(self):
6594 sock = socket.socket()
6595 with sock:
6596 newsock = sock.dup()
6597 sock.close()
6598 with newsock:
6599 self.assertEqual(newsock.get_inheritable(), False)
6600
6601 def test_set_inheritable(self):
6602 sock = socket.socket()

Callers

nothing calls this directly

Calls 5

socketMethod · 0.80
dupMethod · 0.45
closeMethod · 0.45
assertEqualMethod · 0.45
get_inheritableMethod · 0.45

Tested by

no test coverage detected