Skip to content

Commit

Permalink
sort out fail
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jan 7, 2025
1 parent f57f894 commit b5b63f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/expr_and_series/when_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ def test_multiple_conditions(
assert_equal_data(result, expected)


def test_no_arg_when_fail(
constructor: Constructor, request: pytest.FixtureRequest
) -> None:
if "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

0 comments on commit b5b63f1

Please sign in to comment.