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

Method testShareLocal

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

Source from the content-addressed store, hash-verified

6677 self.assertEqual(org.proto, other.proto)
6678
6679 def testShareLocal(self):
6680 data = self.serv.share(os.getpid())
6681 s = socket.fromshare(data)
6682 try:
6683 self.compareSockets(self.serv, s)
6684 finally:
6685 s.close()
6686
6687 def testTypes(self):
6688 families = [socket.AF_INET, socket.AF_INET6]

Callers

nothing calls this directly

Calls 3

compareSocketsMethod · 0.95
shareMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected