@@ -110,6 +110,9 @@ def test_offset_by(
110110 request .applymarker (pytest .mark .xfail ())
111111 if by .endswith ("d" ) and any (x in str (constructor ) for x in ("dask" , "ibis" )):
112112 request .applymarker (pytest .mark .xfail ())
113+ if "cudf" in str (constructor ):
114+ # https://github.com/rapidsai/cudf/issues/19292
115+ request .applymarker (pytest .mark .xfail )
113116 result = df .select (nw .col ("a" ).dt .offset_by (by ))
114117 assert_equal_data (result , {"a" : expected })
115118
@@ -147,6 +150,9 @@ def test_offset_by_tz(
147150 request .applymarker (pytest .mark .xfail ())
148151 if by .endswith ("d" ) and any (x in str (constructor ) for x in ("dask" ,)):
149152 request .applymarker (pytest .mark .xfail ())
153+ if "cudf" in str (constructor ):
154+ # https://github.com/rapidsai/cudf/issues/19292
155+ request .applymarker (pytest .mark .xfail )
150156 df = nw .from_native (constructor (data_tz ))
151157 df = df .select (nw .col ("a" ).dt .convert_time_zone ("Asia/Kathmandu" ))
152158 result = df .select (nw .col ("a" ).dt .offset_by (by ))
@@ -176,9 +182,12 @@ def test_offset_by_dst(
176182 or ("pyarrow_table" in str (constructor ) and PYARROW_VERSION < (12 ,))
177183 ):
178184 pytest .skip ()
179- if any (x in str (constructor ) for x in ("duckdb" , "sqlframe" , "pyspark" , "ibis" )):
185+ if any (
186+ x in str (constructor ) for x in ("duckdb" , "sqlframe" , "pyspark" , "ibis" , "cudf" )
187+ ):
180188 # pyspark,duckdb don't support changing time zones.
181189 # convert_time_zone is not supported for ibis.
190+ # cudf https://github.com/rapidsai/cudf/issues/19292
182191 request .applymarker (pytest .mark .xfail ())
183192 if any (x in by for x in ("y" , "q" , "mo" )) and any (
184193 x in str (constructor ) for x in ("dask" , "pyarrow" )
@@ -193,7 +202,12 @@ def test_offset_by_dst(
193202 assert_equal_data (result_str , {"a" : expected })
194203
195204
196- def test_offset_by_series (constructor_eager : ConstructorEager ) -> None :
205+ def test_offset_by_series (
206+ constructor_eager : ConstructorEager , request : pytest .FixtureRequest
207+ ) -> None :
208+ if "cudf" in str (constructor_eager ):
209+ # https://github.com/rapidsai/cudf/issues/19292
210+ request .applymarker (pytest .mark .xfail )
197211 df = nw .from_native (constructor_eager (data ), eager_only = True )
198212 result = df .select (df ["a" ].dt .offset_by ("1h" ))
199213 expected = {
@@ -205,7 +219,12 @@ def test_offset_by_series(constructor_eager: ConstructorEager) -> None:
205219 assert_equal_data (result , expected )
206220
207221
208- def test_offset_by_invalid_interval (constructor : Constructor ) -> None :
222+ def test_offset_by_invalid_interval (
223+ constructor : Constructor , request : pytest .FixtureRequest
224+ ) -> None :
225+ if "cudf" in str (constructor ):
226+ # https://github.com/rapidsai/cudf/issues/19292
227+ request .applymarker (pytest .mark .xfail )
209228 df = nw .from_native (constructor (data ))
210229 msg = "Invalid `every` string"
211230 with pytest .raises (ValueError , match = msg ):
0 commit comments