Skip to content

Commit 2dd85ab

Browse files
author
MarcoGorelli
committed
fixup test_scalar
1 parent 37e0520 commit 2dd85ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/indexing/test_scalar.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ def test_mixed_index_at_iat_loc_iloc_dataframe(self):
205205
def test_iat_setter_incompatible_assignment(self):
206206
# GH 23236
207207
result = DataFrame({"a": [0, 1], "b": [4, 5]})
208-
result.iat[0, 0] = None
208+
with tm.assert_produces_warning(
209+
FutureWarning, match="item of incompatible dtype"
210+
):
211+
result.iat[0, 0] = None
209212
expected = DataFrame({"a": [None, 1], "b": [4, 5]})
210213
tm.assert_frame_equal(result, expected)
211214

0 commit comments

Comments
 (0)