Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Jan 3, 2025
1 parent 7ba45e8 commit 86eccaf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

3 changes: 1 addition & 2 deletions dask/array/tests/test_array_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from dask.array.utils import assert_eq


@pytest.mark.filterwarnings("ignore:The truth value of an empty array")
@pytest.mark.parametrize(
"func",
[
Expand All @@ -29,7 +28,7 @@
lambda x: np.vstack((x, x)),
lambda x: np.linalg.norm(x),
lambda x: np.min(x),
# lambda x: np.amin(x),
lambda x: np.amin(x),
lambda x: np.round(x),
lambda x: np.insert(x, 0, 3, axis=0),
lambda x: np.delete(x, 0, axis=0),
Expand Down
3 changes: 3 additions & 0 deletions dask/dataframe/dask_expr/tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import dask
import dask.array as da
from dask._compatibility import WINDOWS
from dask.array.numpy_compat import NUMPY_GE_200
from dask.dataframe._compat import PANDAS_GE_210, PANDAS_GE_220
from dask.dataframe.dask_expr import (
DataFrame,
Expand Down Expand Up @@ -2540,6 +2542,7 @@ def test_filter_optimize_condition():
assert_eq(result, expected)


@pytest.mark.skipif(WINDOWS and not NUMPY_GE_200, reason="uses int32")
def test_scalar_repr(df):
result = repr(df.size)
assert result == "<dask_expr.expr.Scalar: expr=df.size(), dtype=int64>"
Expand Down
2 changes: 1 addition & 1 deletion dask/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_is_dask_collection_dask_expr():

def test_is_dask_collection_dask_expr_does_not_materialize():
pytest.importorskip("pandas")
dx = pytest.importorskip("dask_expr")
dx = pytest.importorskip("dask.dataframe.dask_expr")

class DoNotMaterialize(dx._core.Expr):
@property
Expand Down

0 comments on commit 86eccaf

Please sign in to comment.