-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
test_ssl: non_linux_skip_if_other_okay_error
assumes err.reason is a string
#126499
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
Comments
encukou
added a commit
to encukou/cpython
that referenced
this issue
Nov 6, 2024
The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check.
encukou
added a commit
that referenced
this issue
Nov 7, 2024
The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check.
I'll watch the buildbot for a day or two before backporting the fix. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 8, 2024
…nGH-126501) The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check. (cherry picked from commit 78ad7e6) Co-authored-by: Petr Viktorin <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 8, 2024
…nGH-126501) The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check. (cherry picked from commit 78ad7e6) Co-authored-by: Petr Viktorin <[email protected]>
This was referenced Nov 8, 2024
encukou
added a commit
that referenced
this issue
Nov 11, 2024
…26501) (GH-126574) gh-126499: test_ssl: Don't assume err.reason is a string (GH-126501) The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check. (cherry picked from commit 78ad7e6) Co-authored-by: Petr Viktorin <[email protected]>
encukou
added a commit
that referenced
this issue
Nov 11, 2024
…26501) (GH-126573) gh-126499: test_ssl: Don't assume err.reason is a string (GH-126501) The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check. (cherry picked from commit 78ad7e6) Co-authored-by: Petr Viktorin <[email protected]>
picnixz
pushed a commit
to picnixz/cpython
that referenced
this issue
Dec 8, 2024
…nGH-126501) The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check.
ebonnal
pushed a commit
to ebonnal/cpython
that referenced
this issue
Jan 12, 2025
…nGH-126501) The skipping machinery called `getattr(err, "reason", "")` on an arbitrary exception. As intermittent Buildbot failures show, sometimes it's set to None. Convert it to string for this specific check.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recently,
test_ssl
has been failing intermittently but frequently on macOS buildbots, see for example here.Since #108315, there's some code to skip tests, which does
getattr(err, "reason", "")
on an arbitrary exception and expects that to be a string. Ifreason
is set to None, a regex search on it fails. This prevents the calling test from checking that the error is correct.I'll send a PR soon.
Linked PRs
The text was updated successfully, but these errors were encountered: