From b244351f184513ef26365a15db4adafe484a49b6 Mon Sep 17 00:00:00 2001 From: "wychen@chromium.org" Date: Tue, 3 Feb 2015 21:46:52 +0000 Subject: [PATCH] The original assertions trigger pylint unreachable warnings, and they are replaced by fail() calls. Review URL: https://codereview.chromium.org/899503003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@293930 0039d316-1c4b-4281-b951-d872f2087c98 --- tests/gclient_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gclient_test.py b/tests/gclient_test.py index 2c7321a01..0374ed091 100755 --- a/tests/gclient_test.py +++ b/tests/gclient_test.py @@ -994,6 +994,7 @@ class GclientTest(trial_dir.TestCase): obj = gclient.GClient.LoadCurrentConfig(options) try: obj.RunOnDeps('None', []) + self.fail() except gclient_utils.Error, e: self.assertIn('allowed_hosts must be', str(e)) finally: @@ -1018,6 +1019,7 @@ class GclientTest(trial_dir.TestCase): obj = gclient.GClient.LoadCurrentConfig(options) try: obj.RunOnDeps('None', []) + self.fail() except gclient_utils.Error, e: self.assertIn('allowed_hosts must be', str(e)) finally: