Skip to content

Commit d948e0a

Browse files
TST: assure test_update_on_duplicate_frame_unique_argument_index checks dtype
1 parent 1fd2be9 commit d948e0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/frame/methods/test_update.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -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])
228-
other = DataFrame({"a": [2, 3]}, index=[1, 2])
229-
expected = DataFrame({"a": [2, 2, 3]}, index=[1, 1, 2])
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_"))
230230
df.update(other)
231231
tm.assert_frame_equal(df, expected)

0 commit comments

Comments
 (0)