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

Method _testFDPassPartialIntInMiddle

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

Source from the content-addressed store, hash-verified

4276
4277 @testFDPassPartialIntInMiddle.client_skip
4278 def _testFDPassPartialIntInMiddle(self):
4279 fd0, fd1 = self.newFDs(2)
4280 self.sendAncillaryIfPossible(
4281 MSG,
4282 [(socket.SOL_SOCKET,
4283 socket.SCM_RIGHTS,
4284 array.array("i", [fd0, self.badfd]).tobytes()[:-1]),
4285 (socket.SOL_SOCKET,
4286 socket.SCM_RIGHTS,
4287 array.array("i", [fd1]))])
4288
4289 def checkTruncatedHeader(self, result, ignoreflags=0):
4290 # Check that no ancillary data items are returned when data is

Callers

nothing calls this directly

Calls 2

newFDsMethod · 0.95

Tested by

no test coverage detected