-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Don't capture stderr in _check_and_log_subprocess. #14636
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
Conversation
lib/matplotlib/cbook/__init__.py
Outdated
output (stdout and stderr); if not, raise an exception whose text includes | ||
the failed command and captured output. Both the command and the output | ||
are logged at DEBUG level on *logger*. | ||
Run *command*. If it succeeds, return the its stdout output; if not, raise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/the its/its/
but also docstrings should be split after the first sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks; reworded the docstring.
... to avoid capturing kpsewhich's "warning: running with administrator privileges" (that occurs at the only place where we actually care about the return value of _check_and_log_subprocess).
31e1d95
to
00b06da
Compare
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
Backport PR #14636 on branch v3.1.x: (Don't capture stderr in _check_and_log_subprocess.)
... to avoid capturing kpsewhich's "warning: running with administrator
privileges" (that occurs at the only place where we actually care about
the return value of _check_and_log_subprocess).
Should close #14633 (I checked that the error does indeed get printed on stderr).
Not sure how this got to be a regression in 3.1.0, but milestoning as release critical as a consequence.
PR Summary
PR Checklist