@@ -433,8 +433,12 @@ def test_read_columns(self, engine):
433
433
df , engine , expected = expected , read_kwargs = {"columns" : ["string" ]}
434
434
)
435
435
436
- def test_write_index (self , engine ):
436
+ def test_write_index (self , engine , using_copy_on_write , request ):
437
437
check_names = engine != "fastparquet"
438
+ if using_copy_on_write and engine == "fastparquet" :
439
+ request .node .add_marker (
440
+ pytest .mark .xfail (reason = "fastparquet write into index" )
441
+ )
438
442
439
443
df = pd .DataFrame ({"A" : [1 , 2 , 3 ]})
440
444
check_round_trip (df , engine )
@@ -1211,12 +1215,14 @@ def test_error_on_using_partition_cols_and_partition_on(
1211
1215
partition_cols = partition_cols ,
1212
1216
)
1213
1217
1218
+ @pytest .mark .skipif (using_copy_on_write (), reason = "fastparquet writes into Index" )
1214
1219
def test_empty_dataframe (self , fp ):
1215
1220
# GH #27339
1216
1221
df = pd .DataFrame ()
1217
1222
expected = df .copy ()
1218
1223
check_round_trip (df , fp , expected = expected )
1219
1224
1225
+ @pytest .mark .skipif (using_copy_on_write (), reason = "fastparquet writes into Index" )
1220
1226
def test_timezone_aware_index (self , fp , timezone_aware_date_list ):
1221
1227
idx = 5 * [timezone_aware_date_list ]
1222
1228
@@ -1326,6 +1332,7 @@ def test_invalid_dtype_backend(self, engine):
1326
1332
with pytest .raises (ValueError , match = msg ):
1327
1333
read_parquet (path , dtype_backend = "numpy" )
1328
1334
1335
+ @pytest .mark .skipif (using_copy_on_write (), reason = "fastparquet writes into Index" )
1329
1336
def test_empty_columns (self , fp ):
1330
1337
# GH 52034
1331
1338
df = pd .DataFrame (index = pd .Index (["a" , "b" , "c" ], name = "custom name" ))
0 commit comments