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

Issue 554146: Change CheckCall behavior when print_error=False (Closed)

Created:
10 years, 10 months ago by M-A Ruel
Modified:
9 years, 7 months ago
Reviewers:
Nasser Grainawi
CC:
chromium-reviews
Visibility:
Public.

Description

Change CheckCall behavior when print_error=False We now return the stderr half of the tuple. This required a clean up of any usage of CheckCall and GIT.Capture. Patch contributed by Nasser Grainawi <nasser@codeaura.org>; TEST=unit tests BUG=none

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -21 lines) Patch
M gclient_utils.py View 2 chunks +6 lines, -5 lines 0 comments Download
M scm.py View 7 chunks +12 lines, -12 lines 0 comments Download
M tests/gclient_utils_test.py View 3 chunks +3 lines, -2 lines 0 comments Download
M tests/scm_unittest.py View 1 chunk +1 line, -1 line 1 comment Download
M trychange.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Nasser Grainawi
Thanks for fixing those tests, I think I have some idea of how they work ...
10 years, 10 months ago (2010-01-31 03:44:35 UTC) #1
M-A Ruel
10 years, 10 months ago (2010-01-31 05:51:47 UTC) #2
On 2010/01/31 03:44:35, Nasser Grainawi wrote:
> Thanks for fixing those tests, I think I have some idea of how they work now
:)
> 
> http://codereview.chromium.org/554146/diff/1/5
> File tests/scm_unittest.py (right):
> 
> http://codereview.chromium.org/554146/diff/1/5#newcode130
> tests/scm_unittest.py:130: ).AndReturn(['mini@me.com', ''])
> Shouldn't this be ('mini@me.com', '') since Capture should be returning a
tuple,
> not a list?

Technically, you are correct. In practice, it doesn't matter much.

Powered by Google App Engine
This is Rietveld 408576698