From ca11fa3283a1741c3b75af4b8c9f69bb0c348dd8 Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Sun, 27 Oct 2024 15:30:55 +0000 Subject: [PATCH] test: xfail cudf failures (#1259) --- tests/frame/unpivot_test.py | 4 +++- tests/group_by_test.py | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/frame/unpivot_test.py b/tests/frame/unpivot_test.py index fba51f2bb..ed8d98c96 100644 --- a/tests/frame/unpivot_test.py +++ b/tests/frame/unpivot_test.py @@ -94,7 +94,9 @@ def test_unpivot_mixed_types( data: dict[str, Any], expected_dtypes: list[DType], ) -> None: - if "pyarrow_table" in str(constructor) and PYARROW_VERSION < (14, 0, 0): + if "cudf" in str(constructor) or ( + "pyarrow_table" in str(constructor) and PYARROW_VERSION < (14, 0, 0) + ): request.applymarker(pytest.mark.xfail) df = nw.from_native(constructor(data)) result = df.unpivot(on=["a", "b"], index="idx") diff --git a/tests/group_by_test.py b/tests/group_by_test.py index 09ee213e8..63cc631a8 100644 --- a/tests/group_by_test.py +++ b/tests/group_by_test.py @@ -74,7 +74,12 @@ def test_invalid_group_by() -> None: ) -def test_group_by_iter(constructor_eager: ConstructorEager) -> None: +def test_group_by_iter( + constructor_eager: ConstructorEager, request: pytest.FixtureRequest +) -> None: + if "cudf" in str(constructor_eager): + # https://github.com/rapidsai/cudf/issues/17187 + request.applymarker(pytest.mark.xfail) df = nw.from_native(constructor_eager(data), eager_only=True) expected_keys = [(1,), (3,)] keys = []