diff --git a/pandas/tests/arrays/test_datetimes.py b/pandas/tests/arrays/test_datetimes.py index 7d80ad3d8c6be..e5d679950d860 100644 --- a/pandas/tests/arrays/test_datetimes.py +++ b/pandas/tests/arrays/test_datetimes.py @@ -374,6 +374,13 @@ def test_searchsorted_invalid_types(self, other, index): with pytest.raises(TypeError, match=msg): arr.searchsorted(other) + def test_pandasarray_in_datetimearray(self): + # GH 24615 + expected = pd.array([1, 2], dtype="datetime64[ns]") + result = pd.arrays.DatetimeArray(pd.array([1, 2], dtype="datetime64[ns]")) + + tm.assert_datetime_array_equal(expected, result) + class TestSequenceToDT64NS: def test_tz_dtype_mismatch_raises(self):