8000 gh-104522: Change message returned by subprocess when cwd option is not the cause by PurityLake · Pull Request #104851 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104522: Change message returned by subprocess when cwd option is not the cause #104851

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

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
gh104522: Fix failing test due to incorrect raise
  • Loading branch information
PurityLake committed May 24, 2023
commit 36ba1afbdb6764b3042499855e4fb4259f237b74
2 changes: 2 additions & 0 deletions Lib/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1957,6 +1957,8 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
err_msg = os.strerror(errno_num)
if err_filename is not None:
raise child_exception_type(errno_num, err_msg, err_filename)
else:
raise child_exception_type(errno_num, err_msg)
raise child_exception_type(err_msg)


Expand Down
0