Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Issue 7860041: Update subprocess2.check_output() to behave like subprocess.check_output(). (Closed)

Created:
9 years, 3 months ago by M-A Ruel
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Dirk Pranke, M-A Ruel
Visibility:
Public.

Description

Update subprocess2.check_output() to behave like subprocess.check_output(). stderr is not redirected by default. stdout is not allowed. Both were oversight. Do not override stdin=None in case the user would response to stderr output for example. Increase test coverage. R=dpranke@chromium.org BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100456

Patch Set 1 #

Patch Set 2 : Update callers to reset to previous expected behavior #

Total comments: 4

Patch Set 3 : update comment and docstring, they were unclear #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -31 lines) Patch
M PRESUBMIT.py View 1 1 chunk +2 lines, -1 line 0 comments Download
M checkout.py View 1 3 chunks +6 lines, -2 lines 0 comments Download
M gclient_scm.py View 1 1 chunk +3 lines, -1 line 0 comments Download
M presubmit_canned_checks.py View 1 2 chunks +5 lines, -2 lines 0 comments Download
M scm.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M subprocess2.py View 1 2 3 chunks +11 lines, -18 lines 0 comments Download
M tests/subprocess2_test.py View 4 chunks +67 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
M-A Ruel
This is needed to fix git_cl.py conversion. Making behavior consistent with python2.7 is also a ...
9 years, 3 months ago (2011-09-09 15:02:34 UTC) #1
M-A Ruel
update the callers since their expected behavior differed from python 2.7 check_output() behavior anyway.
9 years, 3 months ago (2011-09-09 15:25:13 UTC) #2
Dirk Pranke
LGTM w/ nits. http://codereview.chromium.org/7860041/diff/2001/subprocess2.py File subprocess2.py (right): http://codereview.chromium.org/7860041/diff/2001/subprocess2.py#newcode253 subprocess2.py:253: None. Grammar nit: "Automatically converts stdout=PIPE ...
9 years, 3 months ago (2011-09-09 18:10:38 UTC) #3
M-A Ruel
http://codereview.chromium.org/7860041/diff/2001/subprocess2.py File subprocess2.py (right): http://codereview.chromium.org/7860041/diff/2001/subprocess2.py#newcode253 subprocess2.py:253: None. Looks like the docstring was unclear since it's ...
9 years, 3 months ago (2011-09-09 18:59:20 UTC) #4
commit-bot: I haz the power
9 years, 3 months ago (2011-09-09 19:01:31 UTC) #5
Change committed as 100456

Powered by Google App Engine
This is Rietveld 408576698