Add flake8-bugbear

This commit is contained in:
Taneli Hukkinen
2019-11-04 21:16:09 +01:00
parent cab0e0c1c4
commit 69279108bc
2 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,9 @@ async def try_until_success(coro_func, timeout=TIMEOUT_DURATION):
break
if (time.monotonic() - t_start) >= timeout:
# timeout
assert False, f"{coro_func} is still failing after `{timeout}` seconds"
raise AssertionError(
f"{coro_func} is still failing after `{timeout}` seconds"
)
await asyncio.sleep(0.01)