Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Jan 31, 2024
1 parent 3b19e50 commit 13a1fc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_core/test_lib/test_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def assert_remaining(t: Timeout, time: float | None):
t.remaining()
else:
# prevent rounding errors
assert abs(t.remaining() - time) < 0.000_003
assert abs(t.remaining_or_none() - time) < 0.000_003
assert abs(t.remaining() - time) < 0.000_000_1
assert abs(t.remaining_or_none() - time) < 0.000_000_1


def test_timeout_init():
def test_timeout_init(time):

t = Timeout(5, start=False)
with pytest.raises(TimeoutNotRunningError):
Expand Down

0 comments on commit 13a1fc6

Please sign in to comment.