Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Jan 2, 2024
1 parent 17cb025 commit 14f7d99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dask/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,16 +707,16 @@ def __dask_graph__(self):
assert False, "must not reach"

def optimize(self, fuse=False):
return self
assert False, "must not reach"

dyf = dx._collection.new_collection(DoNotMaterialize())
coll = dx._collection.new_collection(DoNotMaterialize())

with pytest.raises(AssertionError, match="must not reach"):
dyf.__dask_keys__()
coll.__dask_keys__()
with pytest.raises(AssertionError, match="must not reach"):
dyf.__dask_graph__()
coll.__dask_graph__()

assert is_dask_collection(dyf)
assert is_dask_collection(coll)


def test_unpack_collections():
Expand Down

0 comments on commit 14f7d99

Please sign in to comment.