Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Dec 22, 2023
1 parent 143c6ba commit d5329bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dask/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,15 +695,15 @@ def test_is_dask_collection_dask_expr():
def test_is_dask_collection_dask_expr_does_not_materialize():
dx = pytest.importorskip("dask_expr")

class DoNotMaterialize(dx.Expr):
class DoNotMaterialize(dx._core.Expr):
@property
def _meta(self):
return 0

def __dask_graph__(self):
assert False, "must not reach"

dyf = dx.new_collection(DoNotMaterialize())
dyf = dx._collection.new_collection(DoNotMaterialize())
assert is_dask_collection(dyf)

with pytest.raises(AssertionError, match="must not reach"):
Expand Down

0 comments on commit d5329bd

Please sign in to comment.