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

Method testShareLength

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

Source from the content-addressed store, hash-verified

6656 p.join()
6657
6658 def testShareLength(self):
6659 data = self.serv.share(os.getpid())
6660 self.assertRaises(ValueError, socket.fromshare, data[:-1])
6661 self.assertRaises(ValueError, socket.fromshare, data+b"foo")
6662
6663 def compareSockets(self, org, other):
6664 # socket sharing is expected to work only for blocking socket

Callers

nothing calls this directly

Calls 2

shareMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected