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

Issue 1093943002: Fix mock restoration in git_cl_test (Closed)

Created:
5 years, 8 months ago by wychen
Modified:
5 years, 7 months ago
Reviewers:
iannucci, M-A Ruel
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

Fix mock restoration in git_cl_test The assertion in TestGitCl.tearDown should be done after super.tearDown is finished. Otherwise if the assertion fails, mocked objects won't be restored properly, and the next TestCase would be affected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=295049

Patch Set 1 #

Total comments: 2

Patch Set 2 : address maruel's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M tests/git_cl_test.py View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
wychen
PTAL
5 years, 8 months ago (2015-04-18 02:20:00 UTC) #2
M-A Ruel
https://codereview.chromium.org/1093943002/diff/1/tests/git_cl_test.py File tests/git_cl_test.py (right): https://codereview.chromium.org/1093943002/diff/1/tests/git_cl_test.py#newcode105 tests/git_cl_test.py:105: if not self.has_failed(): In general; I do: try: <cleanup> ...
5 years, 8 months ago (2015-04-19 19:32:28 UTC) #3
wychen
https://codereview.chromium.org/1093943002/diff/1/tests/git_cl_test.py File tests/git_cl_test.py (right): https://codereview.chromium.org/1093943002/diff/1/tests/git_cl_test.py#newcode105 tests/git_cl_test.py:105: if not self.has_failed(): On 2015/04/19 19:32:28, M-A Ruel wrote: ...
5 years, 8 months ago (2015-04-20 17:44:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1093943002/20001
5 years, 7 months ago (2015-04-28 23:26:41 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 23:30:07 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=295049

Powered by Google App Engine
This is Rietveld 408576698