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

Method _testFDPassSimple

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

Source from the content-addressed store, hash-verified

4116 len(MSG), 10240))
4117
4118 def _testFDPassSimple(self):
4119 self.assertEqual(
4120 self.sendmsgToServer(
4121 [MSG],
4122 [(socket.SOL_SOCKET,
4123 socket.SCM_RIGHTS,
4124 array.array("i", self.newFDs(1)).tobytes())]),
4125 len(MSG))
4126
4127 def testMultipleFDPass(self):
4128 # Pass multiple FDs in a single array.

Callers

nothing calls this directly

Calls 3

newFDsMethod · 0.95
sendmsgToServerMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected