test_log_time: Prettify duration assertion.

As suggested by @nicoddemus in #13.
This commit is contained in:
Florian Bruhin 2015-04-04 16:33:10 +02:00
parent f1ebbda7a0
commit cef88d6e19

View File

@ -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