-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
test_ssl: non_linux_skip_if_other_okay_error
assumes err.reason is a string
#126499
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. |
encukou
added
needs backport to 3.12
bug and security fixes
needs backport to 3.13
bugs and security fixes
and removed
needs backport to 3.12
bug and security fixes
needs backport to 3.13
bugs and security fixes
labels
Nov 8, 2024
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 <encukou@gmail.com>
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 <encukou@gmail.com>
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 <encukou@gmail.com>
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 <encukou@gmail.com>
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: