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

Method _testFDPassPartialIntInMiddle

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

Source from the content-addressed store, hash-verified

4173
4174 @testFDPassPartialIntInMiddle.client_skip
4175 def _testFDPassPartialIntInMiddle(self):
4176 fd0, fd1 = self.newFDs(2)
4177 self.sendAncillaryIfPossible(
4178 MSG,
4179 [(socket.SOL_SOCKET,
4180 socket.SCM_RIGHTS,
4181 array.array("i", [fd0, self.badfd]).tobytes()[:-1]),
4182 (socket.SOL_SOCKET,
4183 socket.SCM_RIGHTS,
4184 array.array("i", [fd1]))])
4185
4186 def checkTruncatedHeader(self, result, ignoreflags=0):
4187 # Check that no ancillary data items are returned when data is

Callers

nothing calls this directly

Calls 3

newFDsMethod · 0.95
tobytesMethod · 0.45

Tested by

no test coverage detected