Skip to content

Commit 4ea4c43

Browse files
committed
make the toobig changes Solaris SPARC specific
1 parent 76233df commit 4ea4c43

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/test/test_socket.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3923,7 +3923,11 @@ def testCMSG_SPACE(self):
39233923
# Test CMSG_SPACE() with various valid and invalid values,
39243924
# checking the assumptions used by sendmsg().
39253925
toobig = self.socklen_t_limit - socket.CMSG_SPACE(1) + 1
3926-
values = list(range(257)) + list(range(toobig - 257, toobig - 8))
3926+
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))
39273931

39283932
last = socket.CMSG_SPACE(0)
39293933
# struct cmsghdr has at least three members, two of which are ints

0 commit comments

Comments
 (0)