test_log_time: Prettify duration assertion.
As suggested by @nicoddemus in #13.
This commit is contained in:
parent
f1ebbda7a0
commit
cef88d6e19
@ -42,5 +42,4 @@ def test_log_time(caplog):
|
||||
assert match
|
||||
|
||||
duration = float(match.group(1))
|
||||
assert duration >= 0.09
|
||||
assert duration <= 0.11
|
||||
assert 0.09 <= duration <= 0.11
|
||||
|
Loading…
Reference in New Issue
Block a user