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

Issue 899503003: Add back detection of unreachable code (Closed)

Created:
5 years, 10 months ago by wychen
Modified:
5 years, 10 months ago
CC:
chromium-reviews, cmp-cc_chromium.org, 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

The original assertions trigger pylint unreachable warnings, and they are replaced by fail() calls. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=293930

Patch Set 1 #

Patch Set 2 : use self.fail() instead #

Total comments: 3

Patch Set 3 : remove self-explanatory msg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M tests/gclient_test.py View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
wychen
PTAL.
5 years, 10 months ago (2015-02-03 01:41:48 UTC) #2
M-A Ruel
On 2015/02/03 01:41:48, Wei-Yin Chen wrote: > PTAL. Thanks for the CL but it was ...
5 years, 10 months ago (2015-02-03 01:43:13 UTC) #3
wychen
Thanks for your suggestion. I was blocked by the presubmit lint warning, and then saw ...
5 years, 10 months ago (2015-02-03 01:59:35 UTC) #4
M-A Ruel
https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py File tests/gclient_test.py (right): https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py#newcode997 tests/gclient_test.py:997: self.fail("unreachable code") self.fail() is fine, it's unreachable code by ...
5 years, 10 months ago (2015-02-03 02:08:06 UTC) #6
wychen
I've rewritten the description to reflect the current situation. PTAL.
5 years, 10 months ago (2015-02-03 20:07:18 UTC) #7
M-A Ruel
https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py File tests/gclient_test.py (right): https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py#newcode997 tests/gclient_test.py:997: self.fail("unreachable code") On 2015/02/03 02:08:06, M-A Ruel wrote: > ...
5 years, 10 months ago (2015-02-03 20:40:51 UTC) #8
wychen
On 2015/02/03 20:40:51, M-A Ruel wrote: > https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py > File tests/gclient_test.py (right): > > https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py#newcode997 ...
5 years, 10 months ago (2015-02-03 20:55:00 UTC) #9
M-A Ruel
On 2015/02/03 20:55:00, Wei-Yin Chen wrote: > On 2015/02/03 20:40:51, M-A Ruel wrote: > > ...
5 years, 10 months ago (2015-02-03 20:56:30 UTC) #10
wychen
Got it. Fixed. https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py File tests/gclient_test.py (right): https://codereview.chromium.org/899503003/diff/20001/tests/gclient_test.py#newcode997 tests/gclient_test.py:997: self.fail("unreachable code") On 2015/02/03 20:40:51, M-A ...
5 years, 10 months ago (2015-02-03 21:21:12 UTC) #11
M-A Ruel
lgtm
5 years, 10 months ago (2015-02-03 21:42:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/899503003/40001
5 years, 10 months ago (2015-02-03 21:43:53 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 21:46:54 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=293930

Powered by Google App Engine
This is Rietveld 408576698