[3.12] gh-126499: test_ssl: Don't assume err.reason is a string (GH-126501) by miss-islington · Pull Request #126573 · python/cpython · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
  • Loading branch information
encukou authored and miss-islington committed Nov 8, 2024
commit 29fa44517d6fbc56d8a4e4dd7d07ead38653904e
2 changes: 1 addition & 1 deletion Lib/test/test_ssl.py