Review requests

Pep8 fixes.
This commit is contained in:
David Ames
2018-10-31 07:39:38 -07:00
parent 348e7211cd
commit 1d709bbddd
2 changed files with 3 additions and 3 deletions

View File

@@ -394,7 +394,7 @@ class TestModel(ut_utils.BaseTestCase):
timeout = timeout + self._block_until_calls
self._block_until_calls += 1
if timeout == -1:
raise concurrent.futures._base.TimeoutError
raise concurrent.futures._base.TimeoutError("Timeout", 1)
result = f()
if not result:
self.system_ready = False

View File

@@ -735,7 +735,7 @@ async def async_wait_for_application_states(model_name=None, states=None,
try:
await model.block_until(
lambda: model.all_units_idle(), timeout=timeout)
except concurrent.futures._base.TimeoutError as e:
except concurrent.futures._base.TimeoutError:
raise ModelTimeout("Zaza has timed out waiting on the model to "
"reach idle state.")
try:
@@ -763,7 +763,7 @@ async def async_wait_for_application_states(model_name=None, states=None,
unit,
prefixes=prefixes),
timeout=timeout)
except concurrent.futures._base.TimeoutError as e:
except concurrent.futures._base.TimeoutError:
raise ModelTimeout("Zaza has timed out waiting on the model to "
"reach expected workload statuses.")