Skip to content

Commit dbdff5c

Browse files
TST: Use np.intc instead of np.int64 on dtype tests for frame.update (pandas-dev#55509)
1 parent d948e0a commit dbdff5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/frame/methods/test_update.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_update_dt_column_with_NaT_create_column(self):
193193
(1.0, 2.0, float),
194194
(1.0 + 1j, 2.0 + 2j, complex),
195195
(np.uint64(1), np.uint(2), np.dtype("ubyte")),
196-
(np.uint64(1), np.uint(2), np.dtype("int_")),
196+
(np.uint64(1), np.uint(2), np.dtype("intc")),
197197
("a", "b", pd.StringDtype()),
198198
(
199199
pd.to_timedelta("1 ms"),
@@ -224,8 +224,8 @@ def test_update_raises_on_duplicate_argument_index(self):
224224

225225
def test_update_on_duplicate_frame_unique_argument_index(self):
226226
# GH#55509
227-
df = DataFrame({"a": [1, 1, 1]}, index=[1, 1, 2], dtype=np.dtype("int_"))
228-
other = DataFrame({"a": [2, 3]}, index=[1, 2], dtype=np.dtype("int_"))
229-
expected = DataFrame({"a": [2, 2, 3]}, index=[1, 1, 2], dtype=np.dtype("int_"))
227+
df = DataFrame({"a": [1, 1, 1]}, index=[1, 1, 2], dtype=np.dtype("intc"))
228+
other = DataFrame({"a": [2, 3]}, index=[1, 2], dtype=np.dtype("intc"))
229+
expected = DataFrame({"a": [2, 2, 3]}, index=[1, 1, 2], dtype=np.dtype("intc"))
230230
df.update(other)
231231
tm.assert_frame_equal(df, expected)

0 commit comments

Comments
 (0)