We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76233df commit 4ea4c43Copy full SHA for 4ea4c43
Lib/test/test_socket.py
@@ -3923,7 +3923,11 @@ def testCMSG_SPACE(self):
3923
# Test CMSG_SPACE() with various valid and invalid values,
3924
# checking the assumptions used by sendmsg().
3925
toobig = self.socklen_t_limit - socket.CMSG_SPACE(1) + 1
3926
- values = list(range(257)) + list(range(toobig - 257, toobig - 8))
+ if SOLARIS and platform.processor() == "sparc":
3927
+ # On Solaris SPARC, number of bytes returned by socket.CMSG_SPACE
3928
+ # increases at different lengths; see gh-91214.
3929
+ toobig -= 3
3930
+ values = list(range(257)) + list(range(toobig - 257, toobig))
3931
3932
last = socket.CMSG_SPACE(0)
3933
# struct cmsghdr has at least three members, two of which are ints
0 commit comments