From cef88d6e19d09ee99f9d2d3884a052d444799d7f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 4 Apr 2015 16:33:10 +0200 Subject: [PATCH] test_log_time: Prettify duration assertion. As suggested by @nicoddemus in #13. --- qutebrowser/test/utils/debug/test_log_time.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/test/utils/debug/test_log_time.py b/qutebrowser/test/utils/debug/test_log_time.py index 72a8e8d4a..f7da1a220 100644 --- a/qutebrowser/test/utils/debug/test_log_time.py +++ b/qutebrowser/test/utils/debug/test_log_time.py @@ -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