5252
5353VSOCKPORT = 1234
5454AIX = platform .system () == "AIX"
55+ SOLARIS = sys .platform .startswith ("sunos" )
5556WSL = "microsoft-standard-WSL" in platform .release ()
5657
5758try :
@@ -3888,6 +3889,10 @@ def testCMSG_SPACE(self):
38883889 # Test CMSG_SPACE() with various valid and invalid values,
38893890 # checking the assumptions used by sendmsg().
38903891 toobig = self .socklen_t_limit - socket .CMSG_SPACE (1 ) + 1
3892+ if SOLARIS and platform .processor () == "sparc" :
3893+ # On Solaris SPARC, number of bytes returned by socket.CMSG_SPACE
3894+ # increases at different lengths; see gh-91214.
3895+ toobig -= 3
38913896 values = list (range (257 )) + list (range (toobig - 257 , toobig ))
38923897
38933898 last = socket .CMSG_SPACE (0 )
@@ -4034,6 +4039,7 @@ def _testFDPassCMSG_LEN(self):
40344039 self .createAndSendFDs (1 )
40354040
40364041 @unittest .skipIf (is_apple , "skipping, see issue #12958" )
4042+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
40374043 @unittest .skipIf (AIX , "skipping, see issue #22397" )
40384044 @requireAttrs (socket , "CMSG_SPACE" )
40394045 def testFDPassSeparate (self ):
@@ -4045,6 +4051,7 @@ def testFDPassSeparate(self):
40454051
40464052 @testFDPassSeparate .client_skip
40474053 @unittest .skipIf (is_apple , "skipping, see issue #12958" )
4054+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
40484055 @unittest .skipIf (AIX , "skipping, see issue #22397" )
40494056 def _testFDPassSeparate (self ):
40504057 fd0 , fd1 = self .newFDs (2 )
@@ -4058,6 +4065,7 @@ def _testFDPassSeparate(self):
40584065 len (MSG ))
40594066
40604067 @unittest .skipIf (is_apple , "skipping, see issue #12958" )
4068+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
40614069 @unittest .skipIf (AIX , "skipping, see issue #22397" )
40624070 @requireAttrs (socket , "CMSG_SPACE" )
40634071 def testFDPassSeparateMinSpace (self ):
@@ -4072,6 +4080,7 @@ def testFDPassSeparateMinSpace(self):
40724080
40734081 @testFDPassSeparateMinSpace .client_skip
40744082 @unittest .skipIf (is_apple , "skipping, see issue #12958" )
4083+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
40754084 @unittest .skipIf (AIX , "skipping, see issue #22397" )
40764085 def _testFDPassSeparateMinSpace (self ):
40774086 fd0 , fd1 = self .newFDs (2 )
0 commit comments