@@ -1174,9 +1174,17 @@ def test_non_nanosecond_timestamps(self, temp_file):
11741174
11751175
11761176class TestParquetFastParquet (Base ):
1177- @pytest .mark .xfail (reason = "datetime_with_nat gets incorrect values" )
1178- def test_basic (self , fp , df_full ):
1177+ def test_basic (self , fp , df_full , request ):
11791178 pytz = pytest .importorskip ("pytz" )
1179+ import fastparquet
1180+
1181+ if Version (fastparquet .__version__ ) < Version ("2024.11.0" ):
1182+ request .applymarker (
1183+ pytest .mark .xfail (
1184+ reason = ("datetime_with_nat gets incorrect values" ),
1185+ )
1186+ )
1187+
11801188 tz = pytz .timezone ("US/Eastern" )
11811189 df = df_full
11821190
@@ -1213,11 +1221,17 @@ def test_duplicate_columns(self, fp):
12131221 msg = "Cannot create parquet dataset with duplicate column names"
12141222 self .check_error_on_write (df , fp , ValueError , msg )
12151223
1216- @pytest .mark .xfail (
1217- Version (np .__version__ ) >= Version ("2.0.0" ),
1218- reason = "fastparquet uses np.float_ in numpy2" ,
1219- )
1220- def test_bool_with_none (self , fp ):
1224+ def test_bool_with_none (self , fp , request ):
1225+ import fastparquet
1226+
1227+ if Version (fastparquet .__version__ ) < Version ("2024.11.0" ) and Version (
1228+ np .__version__
1229+ ) >= Version ("2.0.0" ):
1230+ request .applymarker (
1231+ pytest .mark .xfail (
1232+ reason = ("fastparquet uses np.float_ in numpy2" ),
1233+ )
1234+ )
12211235 df = pd .DataFrame ({"a" : [True , None , False ]})
12221236 expected = pd .DataFrame ({"a" : [1.0 , np .nan , 0.0 ]}, dtype = "float16" )
12231237 # Fastparquet bug in 0.7.1 makes it so that this dtype becomes
@@ -1331,10 +1345,19 @@ def test_empty_dataframe(self, fp):
13311345 expected = df .copy ()
13321346 check_round_trip (df , fp , expected = expected )
13331347
1334- @pytest .mark .xfail (
1335- reason = "fastparquet bug, see https://github.com/dask/fastparquet/issues/929"
1336- )
1337- def test_timezone_aware_index (self , fp , timezone_aware_date_list ):
1348+ def test_timezone_aware_index (self , fp , timezone_aware_date_list , request ):
1349+ import fastparquet
1350+
1351+ if Version (fastparquet .__version__ ) < Version ("2024.11.0" ):
1352+ request .applymarker (
1353+ pytest .mark .xfail (
1354+ reason = (
1355+ "fastparquet bug, see "
1356+ "https://github.com/dask/fastparquet/issues/929"
1357+ ),
1358+ )
1359+ )
1360+
13381361 idx = 5 * [timezone_aware_date_list ]
13391362
13401363 df = pd .DataFrame (index = idx , data = {"index_as_col" : idx })
0 commit comments