diff --git a/pandas/tests/reshape/concat/test_categorical.py b/pandas/tests/reshape/concat/test_categorical.py index 2730b2ffcc4e3..ef5138c98055f 100644 --- a/pandas/tests/reshape/concat/test_categorical.py +++ b/pandas/tests/reshape/concat/test_categorical.py @@ -1,5 +1,3 @@ -from datetime import datetime - import numpy as np from pandas.core.dtypes.dtypes import CategoricalDtype @@ -168,22 +166,6 @@ def test_concat_categorical_tz(self): ) tm.assert_series_equal(result, expected) - def test_concat_categorical_datetime(self): - # GH-39443 - df1 = DataFrame( - {"x": Series(datetime(2021, 1, 1), index=[0], dtype="category")} - ) - df2 = DataFrame( - {"x": Series(datetime(2021, 1, 2), index=[1], dtype="category")} - ) - - result = pd.concat([df1, df2]) - expected = DataFrame( - {"x": Series([datetime(2021, 1, 1), datetime(2021, 1, 2)])} - ) - - tm.assert_equal(result, expected) - def test_concat_categorical_unchanged(self): # GH-12007 # test fix for when concat on categorical and float @@ -268,4 +250,4 @@ def test_concat_categorical_same_categories_different_order(self): result = pd.concat((df1, df2)) expected = DataFrame({"A": [1, 2, 3, 4]}, index=c3) - tm.assert_frame_equal(result, expected) + tm.assert_frame_equal(result, expected) \ No newline at end of file