Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Feb 6, 2024
1 parent dba0362 commit 67dabc1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dask/tests/test_tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,15 @@ def __dask_tokenize__(self):
a = A()
with pytest.raises(AssertionError):
check_tokenize(a)
check_tokenize(a, deterministic=False)
check_tokenize(a, deterministic="maybe")

# Not idempotent
class B:
def __dask_tokenize__(self):
return random.random()

b = B()
check_tokenize(b, idempotent=False)
with pytest.raises(AssertionError):
check_tokenize(b)
with pytest.raises(AssertionError):
check_tokenize(b, deterministic=False)


def test_tokenize():
Expand Down

0 comments on commit 67dabc1

Please sign in to comment.