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

Method test_dup

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

Source from the content-addressed store, hash-verified

6488 self.assertEqual(sock.get_inheritable(), False)
6489
6490 def test_dup(self):
6491 sock = socket.socket()
6492 with sock:
6493 newsock = sock.dup()
6494 sock.close()
6495 with newsock:
6496 self.assertEqual(newsock.get_inheritable(), False)
6497
6498 def test_set_inheritable(self):
6499 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