@@ -542,25 +542,13 @@ def test_groupby_extension_apply(
542542 self , data_for_grouping , groupby_apply_op , request
543543 ):
544544 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
547545 if pa .types .is_duration (pa_dtype ):
548546 request .node .add_marker (
549547 pytest .mark .xfail (
550548 raises = pa .ArrowNotImplementedError ,
551549 reason = f"pyarrow doesn't support factorizing { pa_dtype } " ,
552550 )
553551 )
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- )
564552 with tm .maybe_produces_warning (
565553 PerformanceWarning , pa_version_under7p0 , check_stacklevel = False
566554 ):
@@ -691,70 +679,10 @@ def test_dropna_array(self, data_missing):
691679
692680
693681class 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
723683
724684
725685class 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-
758686 def test_concat_columns (self , data , na_value , request ):
759687 tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
760688 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):
775703 )
776704 super ().test_concat_extension_arrays_copy_false (data , na_value )
777705
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-
798706 def test_align (self , data , na_value , request ):
799707 tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
800708 if pa_version_under2p0 and tz not in (None , "UTC" ):
@@ -835,32 +743,6 @@ def test_merge(self, data, na_value, request):
835743 )
836744 super ().test_merge (data , na_value )
837745
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-
864746 def test_ravel (self , data , request ):
865747 tz = getattr (data .dtype .pyarrow_dtype , "tz" , None )
866748 if pa_version_under2p0 and tz not in (None , "UTC" ):
0 commit comments