Skip to content

[3.15] gh-153970: Fix str() of CalledProcessError when returncode is not an integer (#153971) - #159084

Merged
vstinner merged 1 commit into
python:3.15from
vstinner:subprocess_str15
Oct 9, 2026
Merged

vstinner merged 1 commit into
python:3.15from
vstinner:subprocess_str15

Conversation

@vstinner

@vstinner vstinner commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

CalledProcessError.str() fell through to a branch that formats the return code with %d, which raises TypeError when returncode is None.

(cherry picked from commit 7c653e2)

…ot an integer (python#153971)

CalledProcessError.__str__() fell through to a branch that formats the
return code with %d, which raises TypeError when returncode is None.

(cherry picked from commit 7c653e2)
@read-the-docs-community

Copy link
Copy Markdown

@vstinner
vstinner merged commit 2de8e96 into python:3.15 Oct 9, 2026
55 checks passed
@vstinner
vstinner deleted the subprocess_str15 branch October 9, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants