@@ -100,14 +100,14 @@ def test_rows_eager(
100
100
assert result == expected
101
101
102
102
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 )
105
109
df = nw .from_native (constructor_eager (data_na ), eager_only = True )
106
-
107
- # WHEN
108
110
result = list (df .iter_rows (named = False ))
109
-
110
- # THEN
111
111
expected = [(None , 4 , 7.0 ), (3 , 4 , None ), (2 , 6 , 9.0 )]
112
112
for i , row in enumerate (expected ):
113
113
for j , value in enumerate (row ):
@@ -118,14 +118,14 @@ def test_rows_with_nulls_unnamed(constructor_eager: ConstructorEager) -> None:
118
118
assert value_in_result == value
119
119
120
120
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 )
123
127
df = nw .from_native (constructor_eager (data_na ), eager_only = True )
124
-
125
- # WHEN
126
128
result = list (df .iter_rows (named = True ))
127
-
128
- # THEN
129
129
expected : list [dict [str , Any ]] = [
130
130
{"a" : None , "b" : 4 , "z" : 7.0 },
131
131
{"a" : 3 , "b" : 4 , "z" : None },
0 commit comments