@@ -542,25 +542,13 @@ def test_groupby_extension_apply(
542
542
self , data_for_grouping , groupby_apply_op , request
543
543
):
544
544
pa_dtype = data_for_grouping .dtype .pyarrow_dtype
545
- # TODO: Is there a better way to get the "object" ID for groupby_apply_op?
546
- is_object = "object" in request .node .nodeid
547
545
if pa .types .is_duration (pa_dtype ):
548
546
request .node .add_marker (
549
547
pytest .mark .xfail (
550
548
raises = pa .ArrowNotImplementedError ,
551
549
reason = f"pyarrow doesn't support factorizing { pa_dtype } " ,
552
550
)
553
551
)
554
- elif pa .types .is_date (pa_dtype ) or (
555
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
556
- ):
557
- if is_object :
558
- request .node .add_marker (
559
- pytest .mark .xfail (
560
- raises = TypeError ,
561
- reason = "GH 47514: _concat_datetime expects axis arg." ,
562
- )
563
- )
564
552
with tm .maybe_produces_warning (
565
553
PerformanceWarning , pa_version_under7p0 , check_stacklevel = False
566
554
):
@@ -691,70 +679,10 @@ def test_dropna_array(self, data_missing):
691
679
692
680
693
681
class TestBasePrinting (base .BasePrintingTests ):
694
- def test_series_repr (self , data , request ):
695
- pa_dtype = data .dtype .pyarrow_dtype
696
- if (
697
- pa .types .is_date (pa_dtype )
698
- or pa .types .is_duration (pa_dtype )
699
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
700
- ):
701
- request .node .add_marker (
702
- pytest .mark .xfail (
703
- raises = TypeError ,
704
- reason = "GH 47514: _concat_datetime expects axis arg." ,
705
- )
706
- )
707
- super ().test_series_repr (data )
708
-
709
- def test_dataframe_repr (self , data , request ):
710
- pa_dtype = data .dtype .pyarrow_dtype
711
- if (
712
- pa .types .is_date (pa_dtype )
713
- or pa .types .is_duration (pa_dtype )
714
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
715
- ):
716
- request .node .add_marker (
717
- pytest .mark .xfail (
718
- raises = TypeError ,
719
- reason = "GH 47514: _concat_datetime expects axis arg." ,
720
- )
721
- )
722
- super ().test_dataframe_repr (data )
682
+ pass
723
683
724
684
725
685
class TestBaseReshaping (base .BaseReshapingTests ):
726
- @pytest .mark .parametrize ("in_frame" , [True , False ])
727
- def test_concat (self , data , in_frame , request ):
728
- pa_dtype = data .dtype .pyarrow_dtype
729
- if (
730
- pa .types .is_date (pa_dtype )
731
- or pa .types .is_duration (pa_dtype )
732
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
733
- ):
734
- request .node .add_marker (
735
- pytest .mark .xfail (
736
- raises = TypeError ,
737
- reason = "GH 47514: _concat_datetime expects axis arg." ,
738
- )
739
- )
740
- super ().test_concat (data , in_frame )
741
-
742
- @pytest .mark .parametrize ("in_frame" , [True , False ])
743
- def test_concat_all_na_block (self , data_missing , in_frame , request ):
744
- pa_dtype = data_missing .dtype .pyarrow_dtype
745
- if (
746
- pa .types .is_date (pa_dtype )
747
- or pa .types .is_duration (pa_dtype )
748
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
749
- ):
750
- request .node .add_marker (
751
- pytest .mark .xfail (
752
- raises = TypeError ,
753
- reason = "GH 47514: _concat_datetime expects axis arg." ,
754
- )
755
- )
756
- super ().test_concat_all_na_block (data_missing , in_frame )
757
-
758
686
def test_concat_columns (self , data , na_value , request ):
759
687
tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
760
688
if pa_version_under2p0 and tz not in (None , "UTC" ):
@@ -775,26 +703,6 @@ def test_concat_extension_arrays_copy_false(self, data, na_value, request):
775
703
)
776
704
super ().test_concat_extension_arrays_copy_false (data , na_value )
777
705
778
- def test_concat_with_reindex (self , data , request , using_array_manager ):
779
- pa_dtype = data .dtype .pyarrow_dtype
780
- if pa .types .is_duration (pa_dtype ):
781
- request .node .add_marker (
782
- pytest .mark .xfail (
783
- raises = TypeError ,
784
- reason = "GH 47514: _concat_datetime expects axis arg." ,
785
- )
786
- )
787
- elif pa .types .is_date (pa_dtype ) or (
788
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
789
- ):
790
- request .node .add_marker (
791
- pytest .mark .xfail (
792
- raises = AttributeError if not using_array_manager else TypeError ,
793
- reason = "GH 34986" ,
794
- )
795
- )
796
- super ().test_concat_with_reindex (data )
797
-
798
706
def test_align (self , data , na_value , request ):
799
707
tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
800
708
if pa_version_under2p0 and tz not in (None , "UTC" ):
@@ -835,32 +743,6 @@ def test_merge(self, data, na_value, request):
835
743
)
836
744
super ().test_merge (data , na_value )
837
745
838
- def test_merge_on_extension_array (self , data , request ):
839
- pa_dtype = data .dtype .pyarrow_dtype
840
- if pa .types .is_date (pa_dtype ) or (
841
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
842
- ):
843
- request .node .add_marker (
844
- pytest .mark .xfail (
845
- raises = AttributeError ,
846
- reason = "GH 34986" ,
847
- )
848
- )
849
- super ().test_merge_on_extension_array (data )
850
-
851
- def test_merge_on_extension_array_duplicates (self , data , request ):
852
- pa_dtype = data .dtype .pyarrow_dtype
853
- if pa .types .is_date (pa_dtype ) or (
854
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
855
- ):
856
- request .node .add_marker (
857
- pytest .mark .xfail (
858
- raises = AttributeError ,
859
- reason = "GH 34986" ,
860
- )
861
- )
862
- super ().test_merge_on_extension_array_duplicates (data )
863
-
864
746
def test_ravel (self , data , request ):
865
747
tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
866
748
if pa_version_under2p0 and tz not in (None , "UTC" ):
@@ -1194,17 +1076,7 @@ def test_diff(self, data, periods, request):
1194
1076
@pytest .mark .parametrize ("dropna" , [True , False ])
1195
1077
def test_value_counts (self , all_data , dropna , request ):
1196
1078
pa_dtype = all_data .dtype .pyarrow_dtype
1197
- if (
1198
- pa .types .is_date (pa_dtype )
1199
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
1200
- ) and dropna :
1201
- request .node .add_marker (
1202
- pytest .mark .xfail (
1203
- raises = NotImplementedError , # tries casting to i8
1204
- reason = "GH 34986" ,
1205
- )
1206
- )
1207
- elif pa .types .is_duration (pa_dtype ):
1079
+ if pa .types .is_duration (pa_dtype ):
1208
1080
request .node .add_marker (
1209
1081
pytest .mark .xfail (
1210
1082
raises = pa .ArrowNotImplementedError ,
@@ -1215,16 +1087,7 @@ def test_value_counts(self, all_data, dropna, request):
1215
1087
1216
1088
def test_value_counts_with_normalize (self , data , request ):
1217
1089
pa_dtype = data .dtype .pyarrow_dtype
1218
- if pa .types .is_date (pa_dtype ) or (
1219
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
1220
- ):
1221
- request .node .add_marker (
1222
- pytest .mark .xfail (
1223
- raises = NotImplementedError , # tries casting to i8
1224
- reason = "GH 34986" ,
1225
- )
1226
- )
1227
- elif pa .types .is_duration (pa_dtype ):
1090
+ if pa .types .is_duration (pa_dtype ):
1228
1091
request .node .add_marker (
1229
1092
pytest .mark .xfail (
1230
1093
raises = pa .ArrowNotImplementedError ,
0 commit comments