|
|
@ -994,7 +994,6 @@ class GclientTest(trial_dir.TestCase):
|
|
|
|
obj = gclient.GClient.LoadCurrentConfig(options)
|
|
|
|
obj = gclient.GClient.LoadCurrentConfig(options)
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
obj.RunOnDeps('None', [])
|
|
|
|
obj.RunOnDeps('None', [])
|
|
|
|
self.assertFalse("unreachable code")
|
|
|
|
|
|
|
|
except gclient_utils.Error, e:
|
|
|
|
except gclient_utils.Error, e:
|
|
|
|
self.assertIn('allowed_hosts must be', str(e))
|
|
|
|
self.assertIn('allowed_hosts must be', str(e))
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
@ -1019,7 +1018,6 @@ class GclientTest(trial_dir.TestCase):
|
|
|
|
obj = gclient.GClient.LoadCurrentConfig(options)
|
|
|
|
obj = gclient.GClient.LoadCurrentConfig(options)
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
obj.RunOnDeps('None', [])
|
|
|
|
obj.RunOnDeps('None', [])
|
|
|
|
self.assertFalse("unreachable code")
|
|
|
|
|
|
|
|
except gclient_utils.Error, e:
|
|
|
|
except gclient_utils.Error, e:
|
|
|
|
self.assertIn('allowed_hosts must be', str(e))
|
|
|
|
self.assertIn('allowed_hosts must be', str(e))
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|