Skip to content

Commit 6a5d92c

Browse files
committed
wip
1 parent ef2fda8 commit 6a5d92c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/tests/frame/indexing/test_indexing.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -832,13 +832,8 @@ def test_setitem_single_column_mixed_datetime(self):
832832
tm.assert_series_equal(result, expected)
833833

834834
# GH#16674 iNaT is treated as an integer when given by the user
835-
with tm.assert_produces_warning(
836-
FutureWarning, match="Setting an item of incompatible dtype"
837-
):
835+
with pytest.raises(TypeError, match="Invalid value"):
838836
df.loc["b", "timestamp"] = iNaT
839-
assert not isna(df.loc["b", "timestamp"])
840-
assert df["timestamp"].dtype == np.object_
841-
assert df.loc["b", "timestamp"] == iNaT
842837

843838
# allow this syntax (as of GH#3216)
844839
df.loc["c", "timestamp"] = np.nan

0 commit comments

Comments
 (0)