Skip to content

Commit

Permalink
Increase stopwatch tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Aug 1, 2018
1 parent 001ed16 commit 7d705b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ def test_stopwatch_instant():
def test_stopwatch_sleep():
w = lku.Stopwatch()
time.sleep(0.5)
assert w.elapsed() == approx(0.5, abs=0.05)
assert w.elapsed() == approx(0.5, abs=0.075)


def test_stopwatch_stop():
w = lku.Stopwatch()
time.sleep(0.5)
w.stop()
time.sleep(0.5)
assert w.elapsed() == approx(0.5, abs=0.05)
assert w.elapsed() == approx(0.5, abs=0.075)


def test_stopwatch_str():
Expand Down

0 comments on commit 7d705b4

Please sign in to comment.