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

Method testFDPassSeparateMinSpace

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

Source from the content-addressed store, hash-verified

4187 @unittest.skipIf(AIX, "skipping, see issue #22397")
4188 @requireAttrs(socket, "CMSG_SPACE")
4189 def testFDPassSeparateMinSpace(self):
4190 # Pass two FDs in two separate arrays, receiving them into the
4191 # minimum space for two arrays.
4192 num_fds = 2
4193 self.checkRecvmsgFDs(num_fds,
4194 self.doRecvmsg(self.serv_sock, len(MSG),
4195 socket.CMSG_SPACE(SIZEOF_INT) +
4196 socket.CMSG_LEN(SIZEOF_INT * num_fds)),
4197 maxcmsgs=2, ignoreflags=socket.MSG_CTRUNC)
4198
4199 @testFDPassSeparateMinSpace.client_skip
4200 @unittest.skipIf(is_apple, "skipping, see issue #12958")

Callers

nothing calls this directly

Calls 2

checkRecvmsgFDsMethod · 0.95
doRecvmsgMethod · 0.45

Tested by

no test coverage detected