@@ -1104,36 +1104,6 @@ def test_update_dtype_errors(self, bad_dtype):
11041104 with pytest .raises (ValueError , match = msg ):
11051105 dtype .update_dtype (bad_dtype )
11061106
1107- import pytest
1108-
1109- class TestArrowDtype (Base ):
1110- @pytest .fixture
1111- def dtype (self ):
1112- """Fixture for ArrowDtype."""
1113- pa = pytest .importorskip ("pyarrow" )
1114- return ArrowDtype (pa .timestamp ("ns" , tz = "UTC" ))
1115-
1116- def test_numpy_dtype_preserves_timezone (self , dtype ):
1117- pa = pytest .importorskip ("pyarrow" )
1118- # Test timezone-aware timestamp
1119- assert dtype .numpy_dtype == dtype .pyarrow_dtype .to_pandas_dtype ()
1120-
1121- def test_numpy_dtype_naive_timestamp (self ):
1122- pa = pytest .importorskip ("pyarrow" )
1123- arrow_type = pa .timestamp ("ns" )
1124- dtype = ArrowDtype (arrow_type )
1125- assert dtype .numpy_dtype == pa .timestamp ("ns" ).to_pandas_dtype ()
1126-
1127- @pytest .mark .parametrize ("tz" , ["UTC" , "America/New_York" , None ])
1128- def test_numpy_dtype_with_varied_timezones (self , tz ):
1129- pa = pytest .importorskip ("pyarrow" )
1130- arrow_type = pa .timestamp ("ns" , tz = tz )
1131- dtype = ArrowDtype (arrow_type )
1132- if tz :
1133- assert dtype .numpy_dtype == arrow_type .to_pandas_dtype ()
1134- else :
1135- assert dtype .numpy_dtype == pa .timestamp ("ns" ).to_pandas_dtype ()
1136-
11371107@pytest .mark .parametrize (
11381108 "dtype" , [CategoricalDtype , IntervalDtype , DatetimeTZDtype , PeriodDtype ]
11391109)
0 commit comments