Skip to content

Commit 85301cc

Browse files
committed
wip
1 parent 39a9aa2 commit 85301cc

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pandas/tests/frame/indexing/test_coercion.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,6 @@ def test_26395(indexer_al):
7373
expected = DataFrame({"D": [0, 0, 2]}, index=["A", "B", "C"], dtype=np.int64)
7474
tm.assert_frame_equal(df, expected)
7575

76-
with tm.assert_produces_warning(
77-
FutureWarning, match="Setting an item of incompatible dtype"
78-
):
79-
indexer_al(df)["C", "D"] = 44.5
80-
expected = DataFrame({"D": [0, 0, 44.5]}, index=["A", "B", "C"], dtype=np.float64)
81-
tm.assert_frame_equal(df, expected)
82-
83-
with tm.assert_produces_warning(
84-
FutureWarning, match="Setting an item of incompatible dtype"
85-
):
86-
indexer_al(df)["C", "D"] = "hello"
87-
expected = DataFrame({"D": [0, 0, "hello"]}, index=["A", "B", "C"], dtype=object)
88-
tm.assert_frame_equal(df, expected)
89-
9076

9177
@pytest.mark.xfail(reason="unwanted upcast")
9278
def test_15231():

0 commit comments

Comments
 (0)