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

Method test_socketpair

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

Source from the content-addressed store, hash-verified

6532
6533
6534 def test_socketpair(self):
6535 s1, s2 = socket.socketpair()
6536 self.addCleanup(s1.close)
6537 self.addCleanup(s2.close)
6538 self.assertEqual(s1.get_inheritable(), False)
6539 self.assertEqual(s2.get_inheritable(), False)
6540
6541
6542@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