Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commented Nov 8, 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.
(cherry picked from commit 78ad7e6)

Co-authored-by: Petr Viktorin [email protected]

…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]>
Copy link

@ruidazengruidazeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense! If err is None and then the original code will fail.

@encukouencukou merged commit 1e4b9c7 into python:3.13Nov 11, 2024
@miss-islingtonmiss-islington deleted the backport-78ad7e6-3.13 branch January 2, 2026 17:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@ruidazeng@encukou