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

Method _testFDPassPartialInt

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

Source from the content-addressed store, hash-verified

4146 self.assertLess(len(cmsg_data), SIZEOF_INT)
4147
4148 def _testFDPassPartialInt(self):
4149 self.sendAncillaryIfPossible(
4150 MSG,
4151 [(socket.SOL_SOCKET,
4152 socket.SCM_RIGHTS,
4153 array.array("i", [self.badfd]).tobytes()[:-1])])
4154
4155 @requireAttrs(socket, "CMSG_SPACE")
4156 def testFDPassPartialIntInMiddle(self):

Callers

nothing calls this directly

Calls 2

tobytesMethod · 0.45

Tested by

no test coverage detected