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

Method testFDPassSeparateMinSpace

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

Source from the content-addressed store, hash-verified

4084 @unittest.skipIf(AIX, "skipping, see issue #22397")
4085 @requireAttrs(socket, "CMSG_SPACE")
4086 def testFDPassSeparateMinSpace(self):
4087 # Pass two FDs in two separate arrays, receiving them into the
4088 # minimum space for two arrays.
4089 num_fds = 2
4090 self.checkRecvmsgFDs(num_fds,
4091 self.doRecvmsg(self.serv_sock, len(MSG),
4092 socket.CMSG_SPACE(SIZEOF_INT) +
4093 socket.CMSG_LEN(SIZEOF_INT * num_fds)),
4094 maxcmsgs=2, ignoreflags=socket.MSG_CTRUNC)
4095
4096 @testFDPassSeparateMinSpace.client_skip
4097 @unittest.skipIf(is_apple, "skipping, see issue #12958")

Callers

nothing calls this directly

Calls 3

checkRecvmsgFDsMethod · 0.95
lenFunction · 0.85
doRecvmsgMethod · 0.45

Tested by

no test coverage detected