-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-91214: Skip tests failing on Solaris #31978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -3394,7 +3395,7 @@ def testCMSG_SPACE(self): | |||
# Test CMSG_SPACE() with various valid and invalid values, | |||
# checking the assumptions used by sendmsg(). | |||
toobig = self.socklen_t_limit - socket.CMSG_SPACE(1) + 1 | |||
values = list(range(257)) + list(range(toobig - 257, toobig)) | |||
values = list(range(257)) + list(range(toobig - 257, toobig - 8)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a 'fix' we are using internally, probably not acceptable (more in the issue tracker).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the values of socklen_t_limit
and socket.CMSG_SPACE(1)
on Solaris?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I think that the simplest way to resolve this is to add Solaris-specific fix:
values = list(range(257)) + list(range(toobig - 257, toobig - 8)) | |
if SOLARIS: | |
toobig -= 8 | |
values = list(range(257)) + list(range(toobig - 257, toobig)) |
148436c
to
c42f93b
Compare
c42f93b
to
15d08ee
Compare
This PR should take Solaris worker closer to being green.
https://bugs.python.org/issue47058