Skip to content

Commit 94c167e

Browse files
fix expected error message
1 parent 92638f1 commit 94c167e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tests/indexing/test_indexing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,7 @@ def run_tests(df, rhs, right_loc, right_iloc):
728728
right_iloc["joe"] = [1.0, "@-28", "@-20", "@-12", 17.0]
729729
right_iloc["jolie"] = ["@2", -26.0, -18.0, -10.0, "@18"]
730730
if using_infer_string:
731-
with pytest.raises(
732-
TypeError, match="Must provide strings|Scalar must be NA or str"
733-
):
731+
with pytest.raises(TypeError, match="Invalid value"):
734732
with tm.assert_produces_warning(
735733
FutureWarning, match="incompatible dtype"
736734
):

0 commit comments

Comments
 (0)