Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Jan 8, 2025
1 parent 71be730 commit b605ed3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 1 addition & 6 deletions tests/expr_and_series/when_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@ def test_multiple_conditions(
assert_equal_data(result, expected)


def test_no_arg_when_fail(
constructor: Constructor, request: pytest.FixtureRequest
) -> None:
if ("pyspark" in str(constructor)) or "duckdb" in str(constructor):
request.applymarker(pytest.mark.xfail)

def test_no_arg_when_fail(constructor: Constructor) -> None:
df = nw.from_native(constructor(data))
with pytest.raises((TypeError, ValueError)):
df.select(nw.when().then(value=3).alias("a_when"))
Expand Down
4 changes: 3 additions & 1 deletion tests/frame/unique_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def test_unique(
"last",
}:
context: Any = pytest.raises(ValueError, match="row order")
elif keep == "none" and df.implementation is nw.Implementation.PYSPARK:
elif (
keep == "none" and df.implementation is nw.Implementation.PYSPARK
): # pragma: no cover
context = pytest.raises(
ValueError,
match="`LazyFrame.unique` with PySpark backend only supports `keep='any'`.",
Expand Down

0 comments on commit b605ed3

Please sign in to comment.