Skip to content

Commit

Permalink
test: unxfail test_unary for dask (#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Oct 14, 2024
1 parent 2e7afa5 commit 0e12138
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/expr_and_series/unary_test.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
from typing import Any

import pytest

import narwhals.stable.v1 as nw
from tests.utils import Constructor
from tests.utils import compare_dicts


def test_unary(constructor: Constructor, request: pytest.FixtureRequest) -> None:
if "dask" in str(constructor):
request.applymarker(pytest.mark.xfail)
def test_unary(constructor: Constructor) -> None:
data = {"a": [1, 3, 2], "b": [4, 4, 6], "z": [7.0, 8, 9]}
result = (
nw.from_native(constructor(data))
Expand All @@ -20,7 +16,8 @@ def test_unary(constructor: Constructor, request: pytest.FixtureRequest) -> None
z_min=nw.col("z").min(),
z_max=nw.col("z").max(),
)
.select(nw.col("a_mean", "a_sum", "b_nunique", "z_min", "z_max").unique())
.unique(["a_mean", "a_sum", "b_nunique", "z_min", "z_max"])
.select(["a_mean", "a_sum", "b_nunique", "z_min", "z_max"])
)
expected = {
"a_mean": [2],
Expand Down

0 comments on commit 0e12138

Please sign in to comment.