13
13
14
14
from pandas ._config import get_option
15
15
16
- from pandas .compat import (
17
- is_platform_mac ,
18
- is_platform_windows ,
19
- )
16
+ from pandas .compat import is_platform_windows
20
17
from pandas .compat .pyarrow import (
21
18
pa_version_under2p0 ,
22
19
pa_version_under5p0 ,
@@ -258,12 +255,6 @@ def test_invalid_engine(df_compat):
258
255
check_round_trip (df_compat , "foo" , "bar" )
259
256
260
257
261
- @pytest .mark .xfail (
262
- is_platform_mac (),
263
- raises = ImportError ,
264
- reason = "Raises Library not loaded: @rpath/libssl.1.1.dylib in CI" ,
265
- strict = False ,
266
- )
267
258
def test_options_py (df_compat , pa ):
268
259
# use the set option
269
260
@@ -285,12 +276,6 @@ def test_options_auto(df_compat, fp, pa):
285
276
check_round_trip (df_compat )
286
277
287
278
288
- @pytest .mark .xfail (
289
- is_platform_mac (),
290
- raises = ImportError ,
291
- reason = "Raises Library not loaded: @rpath/libssl.1.1.dylib in CI" ,
292
- strict = False ,
293
- )
294
279
def test_options_get_engine (fp , pa ):
295
280
assert isinstance (get_engine ("pyarrow" ), PyArrowImpl )
296
281
assert isinstance (get_engine ("fastparquet" ), FastParquetImpl )
@@ -354,12 +339,6 @@ def test_get_engine_auto_error_message():
354
339
get_engine ("auto" )
355
340
356
341
357
- @pytest .mark .xfail (
358
- is_platform_mac (),
359
- raises = ImportError ,
360
- reason = "Raises Library not loaded: @rpath/libssl.1.1.dylib in CI" ,
361
- strict = False ,
362
- )
363
342
def test_cross_engine_pa_fp (df_cross_compat , pa , fp ):
364
343
# cross-compat with differing reading/writing engines
365
344
@@ -374,13 +353,7 @@ def test_cross_engine_pa_fp(df_cross_compat, pa, fp):
374
353
tm .assert_frame_equal (result , df [["a" , "d" ]])
375
354
376
355
377
- @pytest .mark .xfail (
378
- is_platform_mac (),
379
- raises = ImportError ,
380
- reason = "Raises Library not loaded: @rpath/libssl.1.1.dylib in CI" ,
381
- strict = False ,
382
- )
383
- def test_cross_engine_fp_pa (df_cross_compat , pa , fp ):
356
+ def test_cross_engine_fp_pa (request , df_cross_compat , pa , fp ):
384
357
# cross-compat with differing reading/writing engines
385
358
df = df_cross_compat
386
359
with tm .ensure_clean () as path :
@@ -420,12 +393,6 @@ def test_parquet_read_from_url(self, df_compat, engine):
420
393
tm .assert_frame_equal (df , df_compat )
421
394
422
395
423
- @pytest .mark .xfail (
424
- is_platform_mac (),
425
- raises = ImportError ,
426
- reason = "Raises Library not loaded: @rpath/libssl.1.1.dylib in CI" ,
427
- strict = False ,
428
- )
429
396
class TestBasic (Base ):
430
397
def test_error (self , engine ):
431
398
for obj in [
@@ -701,12 +668,6 @@ def test_read_empty_array(self, pa, dtype):
701
668
check_round_trip (df , pa , read_kwargs = {"use_nullable_dtypes" : True })
702
669
703
670
704
- @pytest .mark .xfail (
705
- is_platform_mac (),
706
- raises = ImportError ,
707
- reason = "Raises Library not loaded: @rpath/libssl.1.1.dylib in CI" ,
708
- strict = False ,
709
- )
710
671
@pytest .mark .filterwarnings ("ignore:CategoricalBlock is deprecated:DeprecationWarning" )
711
672
class TestParquetPyArrow (Base ):
712
673
def test_basic (self , pa , df_full ):
@@ -874,7 +835,7 @@ def test_s3_roundtrip_for_dir(
874
835
repeat = 1 ,
875
836
)
876
837
877
- @td .skip_if_no ("pyarrow" , min_version = "3" )
838
+ @td .skip_if_no ("pyarrow" )
878
839
def test_read_file_like_obj_support (self , df_compat ):
879
840
buffer = BytesIO ()
880
841
df_compat .to_parquet (buffer )
0 commit comments