diff --git a/tests/expr_and_series/when_test.py b/tests/expr_and_series/when_test.py index aafc35f0b..0faf59172 100644 --- a/tests/expr_and_series/when_test.py +++ b/tests/expr_and_series/when_test.py @@ -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")) diff --git a/tests/frame/unique_test.py b/tests/frame/unique_test.py index e8a4f6123..a193ab98b 100644 --- a/tests/frame/unique_test.py +++ b/tests/frame/unique_test.py @@ -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'`.",