@@ -539,25 +539,13 @@ def test_groupby_extension_apply(
539
539
self , data_for_grouping , groupby_apply_op , request
540
540
):
541
541
pa_dtype = data_for_grouping .dtype .pyarrow_dtype
542
- # TODO: Is there a better way to get the "object" ID for groupby_apply_op?
543
- is_object = "object" in request .node .nodeid
544
542
if pa .types .is_duration (pa_dtype ):
545
543
request .node .add_marker (
546
544
pytest .mark .xfail (
547
545
raises = pa .ArrowNotImplementedError ,
548
546
reason = f"pyarrow doesn't support factorizing { pa_dtype } " ,
549
547
)
550
548
)
551
- elif pa .types .is_date (pa_dtype ) or (
552
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
553
- ):
554
- if is_object :
555
- request .node .add_marker (
556
- pytest .mark .xfail (
557
- raises = TypeError ,
558
- reason = "GH 47514: _concat_datetime expects axis arg." ,
559
- )
560
- )
561
549
with tm .maybe_produces_warning (
562
550
PerformanceWarning , pa_version_under7p0 , check_stacklevel = False
563
551
):
@@ -688,70 +676,10 @@ def test_dropna_array(self, data_missing):
688
676
689
677
690
678
class TestBasePrinting (base .BasePrintingTests ):
691
- def test_series_repr (self , data , request ):
692
- pa_dtype = data .dtype .pyarrow_dtype
693
- if (
694
- pa .types .is_date (pa_dtype )
695
- or pa .types .is_duration (pa_dtype )
696
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
697
- ):
698
- request .node .add_marker (
699
- pytest .mark .xfail (
700
- raises = TypeError ,
701
- reason = "GH 47514: _concat_datetime expects axis arg." ,
702
- )
703
- )
704
- super ().test_series_repr (data )
705
-
706
- def test_dataframe_repr (self , data , request ):
707
- pa_dtype = data .dtype .pyarrow_dtype
708
- if (
709
- pa .types .is_date (pa_dtype )
710
- or pa .types .is_duration (pa_dtype )
711
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
712
- ):
713
- request .node .add_marker (
714
- pytest .mark .xfail (
715
- raises = TypeError ,
716
- reason = "GH 47514: _concat_datetime expects axis arg." ,
717
- )
718
- )
719
- super ().test_dataframe_repr (data )
679
+ pass
720
680
721
681
722
682
class TestBaseReshaping (base .BaseReshapingTests ):
723
- @pytest .mark .parametrize ("in_frame" , [True , False ])
724
- def test_concat (self , data , in_frame , request ):
725
- pa_dtype = data .dtype .pyarrow_dtype
726
- if (
727
- pa .types .is_date (pa_dtype )
728
- or pa .types .is_duration (pa_dtype )
729
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
730
- ):
731
- request .node .add_marker (
732
- pytest .mark .xfail (
733
- raises = TypeError ,
734
- reason = "GH 47514: _concat_datetime expects axis arg." ,
735
- )
736
- )
737
- super ().test_concat (data , in_frame )
738
-
739
- @pytest .mark .parametrize ("in_frame" , [True , False ])
740
- def test_concat_all_na_block (self , data_missing , in_frame , request ):
741
- pa_dtype = data_missing .dtype .pyarrow_dtype
742
- if (
743
- pa .types .is_date (pa_dtype )
744
- or pa .types .is_duration (pa_dtype )
745
- or (pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None )
746
- ):
747
- request .node .add_marker (
748
- pytest .mark .xfail (
749
- raises = TypeError ,
750
- reason = "GH 47514: _concat_datetime expects axis arg." ,
751
- )
752
- )
753
- super ().test_concat_all_na_block (data_missing , in_frame )
754
-
755
683
def test_concat_columns (self , data , na_value , request ):
756
684
tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
757
685
if pa_version_under2p0 and tz not in (None , "UTC" ):
@@ -772,26 +700,6 @@ def test_concat_extension_arrays_copy_false(self, data, na_value, request):
772
700
)
773
701
super ().test_concat_extension_arrays_copy_false (data , na_value )
774
702
775
- def test_concat_with_reindex (self , data , request , using_array_manager ):
776
- pa_dtype = data .dtype .pyarrow_dtype
777
- if pa .types .is_duration (pa_dtype ):
778
- request .node .add_marker (
779
- pytest .mark .xfail (
780
- raises = TypeError ,
781
- reason = "GH 47514: _concat_datetime expects axis arg." ,
782
- )
783
- )
784
- elif pa .types .is_date (pa_dtype ) or (
785
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
786
- ):
787
- request .node .add_marker (
788
- pytest .mark .xfail (
789
- raises = AttributeError if not using_array_manager else TypeError ,
790
- reason = "GH 34986" ,
791
- )
792
- )
793
- super ().test_concat_with_reindex (data )
794
-
795
703
def test_align (self , data , na_value , request ):
796
704
tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
797
705
if pa_version_under2p0 and tz not in (None , "UTC" ):
@@ -832,32 +740,6 @@ def test_merge(self, data, na_value, request):
832
740
)
833
741
super ().test_merge (data , na_value )
834
742
835
- def test_merge_on_extension_array (self , data , request ):
836
- pa_dtype = data .dtype .pyarrow_dtype
837
- if pa .types .is_date (pa_dtype ) or (
838
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
839
- ):
840
- request .node .add_marker (
841
- pytest .mark .xfail (
842
- raises = AttributeError ,
843
- reason = "GH 34986" ,
844
- )
845
- )
846
- super ().test_merge_on_extension_array (data )
847
-
848
- def test_merge_on_extension_array_duplicates (self , data , request ):
849
- pa_dtype = data .dtype .pyarrow_dtype
850
- if pa .types .is_date (pa_dtype ) or (
851
- pa .types .is_timestamp (pa_dtype ) and pa_dtype .tz is None
852
- ):
853
- request .node .add_marker (
854
- pytest .mark .xfail (
855
- raises = AttributeError ,
856
- reason = "GH 34986" ,
857
- )
858
- )
859
- super ().test_merge_on_extension_array_duplicates (data )
860
-
861
743
def test_ravel (self , data , request ):
862
744
tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
863
745
if pa_version_under2p0 and tz not in (None , "UTC" ):
0 commit comments