Skip to content

Commit 25f0693

Browse files
author
MarcoGorelli
committed
fixup test_at
1 parent 3aed02f commit 25f0693

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/indexing/test_at.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ def test_at_datetime_index(self, row):
122122
index=DatetimeIndex(data=["2019-01-01", "2019-01-02"]),
123123
)
124124

125-
df.at[row, 0] = 0.5
125+
with tm.assert_produces_warning(
126+
FutureWarning, match="item of incompatible dtype"
127+
):
128+
df.at[row, 0] = 0.5
126129
tm.assert_frame_equal(df, expected)
127130

128131

0 commit comments

Comments
 (0)