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

Method test_socketpair

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

Source from the content-addressed store, hash-verified

6635
6636
6637 def test_socketpair(self):
6638 s1, s2 = socket.socketpair()
6639 self.addCleanup(s1.close)
6640 self.addCleanup(s2.close)
6641 self.assertEqual(s1.get_inheritable(), False)
6642 self.assertEqual(s2.get_inheritable(), False)
6643
6644
6645@unittest.skipUnless(hasattr(socket, "SOCK_NONBLOCK"),

Callers

nothing calls this directly

Calls 4

addCleanupMethod · 0.80
socketpairMethod · 0.45
assertEqualMethod · 0.45
get_inheritableMethod · 0.45

Tested by

no test coverage detected