Skip to content

Commit 39260a0

Browse files
xfail tests that trigger dtype inference warnings
1 parent 4f628e8 commit 39260a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/frame/indexing/test_indexing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,8 @@ def test_setitem_frame_float(self, float_frame):
906906
expected = piece.values
907907
tm.assert_almost_equal(result, expected)
908908

909+
# dtype inference
910+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
909911
def test_setitem_frame_mixed(self, float_string_frame):
910912
# GH 3216
911913

@@ -918,6 +920,8 @@ def test_setitem_frame_mixed(self, float_string_frame):
918920
f.loc[key] = piece
919921
tm.assert_almost_equal(f.loc[f.index[0:2], ["A", "B"]].values, piece.values)
920922

923+
# dtype inference
924+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
921925
def test_setitem_frame_mixed_rows_unaligned(self, float_string_frame):
922926
# GH#3216 rows unaligned
923927
f = float_string_frame.copy()
@@ -932,6 +936,8 @@ def test_setitem_frame_mixed_rows_unaligned(self, float_string_frame):
932936
f.loc[f.index[0:2:], ["A", "B"]].values, piece.values[0:2]
933937
)
934938

939+
# dtype inference
940+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
935941
def test_setitem_frame_mixed_key_unaligned(self, float_string_frame):
936942
# GH#3216 key is unaligned with values
937943
f = float_string_frame.copy()

0 commit comments

Comments
 (0)