Skip to content

Commit dce0c71

Browse files
authored
test: fixup cudf failures (#2181)
1 parent 8ce8b5d commit dce0c71

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

tests/expr_and_series/cum_sum_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def test_lazy_cum_sum_grouped(
5454
request.applymarker(pytest.mark.xfail)
5555
if "polars" in str(constructor) and POLARS_VERSION < (1, 9):
5656
pytest.skip(reason="too old version")
57+
if "cudf" in str(constructor):
58+
# https://github.com/rapidsai/cudf/issues/18159
59+
request.applymarker(pytest.mark.xfail)
5760

5861
df = nw.from_native(
5962
constructor(
@@ -100,6 +103,9 @@ def test_lazy_cum_sum_ordered_by_nulls(
100103
request.applymarker(pytest.mark.xfail)
101104
if "polars" in str(constructor) and POLARS_VERSION < (1, 9):
102105
pytest.skip(reason="too old version")
106+
if "cudf" in str(constructor):
107+
# https://github.com/rapidsai/cudf/issues/18159
108+
request.applymarker(pytest.mark.xfail)
103109

104110
df = nw.from_native(
105111
constructor(

tests/expr_and_series/rolling_sum_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ def test_rolling_sum_expr_lazy_grouped(
136136
pytest.skip()
137137
if any(x in str(constructor) for x in ("dask", "pyarrow_table", "duckdb")):
138138
request.applymarker(pytest.mark.xfail)
139+
if "cudf" in str(constructor) and center:
140+
# center is not implemented for offset-based windows
141+
request.applymarker(pytest.mark.xfail)
139142
if "modin" in str(constructor):
140143
# unreliable
141144
pytest.skip()

tests/expr_and_series/str/to_datetime_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ def test_to_datetime_tz_aware(
219219
if "sqlframe" in str(constructor):
220220
# https://github.com/eakmanrq/sqlframe/issues/325
221221
request.applymarker(pytest.mark.xfail)
222+
if "cudf" in str(constructor):
223+
# cuDF does not yet support timezone-aware datetimes
224+
request.applymarker(pytest.mark.xfail)
222225
context = (
223226
pytest.raises(NotImplementedError)
224227
if any(x in str(constructor) for x in ("duckdb", "sqlframe")) and format is None

tests/expr_and_series/struct_/field_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ def test_get_field_expr(
1515
request: pytest.FixtureRequest,
1616
constructor: Constructor,
1717
) -> None:
18-
if any(
19-
backend in str(constructor) for backend in ("dask", "modin", "cudf", "sqlframe")
20-
):
18+
if any(backend in str(constructor) for backend in ("dask", "modin", "sqlframe")):
2119
request.applymarker(pytest.mark.xfail)
2220
if "pandas" in str(constructor) and PANDAS_VERSION < (2, 2, 0):
2321
pytest.skip()
@@ -54,7 +52,7 @@ def test_get_field_series(
5452
request: pytest.FixtureRequest,
5553
constructor_eager: ConstructorEager,
5654
) -> None:
57-
if any(backend in str(constructor_eager) for backend in ("modin", "cudf")):
55+
if any(backend in str(constructor_eager) for backend in ("modin",)):
5856
request.applymarker(pytest.mark.xfail)
5957
if "pandas" in str(constructor_eager) and PANDAS_VERSION < (2, 2, 0):
6058
pytest.skip()

0 commit comments

Comments
 (0)