Skip to content

Commit 32ee4dc

Browse files
TST: correct test to use array instead of np.array
1 parent 9221e5a commit 32ee4dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/copy_view/index/test_datetimeindex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Series,
77
Timestamp,
88
date_range,
9+
array
910
)
1011
import pandas._testing as tm
1112
from pandas.tests.copy_view.util import get_array
@@ -67,7 +68,7 @@ def test_constructor_copy_input_datetime_ndarray_default():
6768

6869
def test_constructor_copy_input_datetime_ea_default():
6970
# GH 63388
70-
arr = np.array(["2020-01-01", "2020-01-02"], dtype="datetime64[ns]")
71+
arr = array(["2020-01-01", "2020-01-02"], dtype="datetime64[ns]")
7172
idx = DatetimeIndex(arr)
7273
assert not tm.shares_memory(arr, idx.array)
7374

0 commit comments

Comments
 (0)