Skip to content

Commit e4fe3ee

Browse files
authored
test: xfail iter_rows tests for cudf (#1209)
1 parent 55e00bb commit e4fe3ee

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/frame/rows_test.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ def test_rows_eager(
100100
assert result == expected
101101

102102

103-
def test_rows_with_nulls_unnamed(constructor_eager: ConstructorEager) -> None:
104-
# GIVEN
103+
def test_rows_with_nulls_unnamed(
104+
constructor_eager: ConstructorEager, request: pytest.FixtureRequest
105+
) -> None:
106+
if "cudf" in str(constructor_eager):
107+
# cudf intentionally doesn't support itertuples / iter_rows
108+
request.applymarker(pytest.mark.xfail)
105109
df = nw.from_native(constructor_eager(data_na), eager_only=True)
106-
107-
# WHEN
108110
result = list(df.iter_rows(named=False))
109-
110-
# THEN
111111
expected = [(None, 4, 7.0), (3, 4, None), (2, 6, 9.0)]
112112
for i, row in enumerate(expected):
113113
for j, value in enumerate(row):
@@ -118,14 +118,14 @@ def test_rows_with_nulls_unnamed(constructor_eager: ConstructorEager) -> None:
118118
assert value_in_result == value
119119

120120

121-
def test_rows_with_nulls_named(constructor_eager: ConstructorEager) -> None:
122-
# GIVEN
121+
def test_rows_with_nulls_named(
122+
constructor_eager: ConstructorEager, request: pytest.FixtureRequest
123+
) -> None:
124+
if "cudf" in str(constructor_eager):
125+
# cudf intentionally doesn't support itertuples / iter_rows
126+
request.applymarker(pytest.mark.xfail)
123127
df = nw.from_native(constructor_eager(data_na), eager_only=True)
124-
125-
# WHEN
126128
result = list(df.iter_rows(named=True))
127-
128-
# THEN
129129
expected: list[dict[str, Any]] = [
130130
{"a": None, "b": 4, "z": 7.0},
131131
{"a": 3, "b": 4, "z": None},

0 commit comments

Comments
 (0)