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

Method _testFDPassPartialInt

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

Source from the content-addressed store, hash-verified

4249 self.assertLess(len(cmsg_data), SIZEOF_INT)
4250
4251 def _testFDPassPartialInt(self):
4252 self.sendAncillaryIfPossible(
4253 MSG,
4254 [(socket.SOL_SOCKET,
4255 socket.SCM_RIGHTS,
4256 array.array("i", [self.badfd]).tobytes()[:-1])])
4257
4258 @requireAttrs(socket, "CMSG_SPACE")
4259 def testFDPassPartialIntInMiddle(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected