Skip to content

Commit

Permalink
fix expected error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Nov 8, 2024
1 parent 92638f1 commit 94c167e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pandas/tests/indexing/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,7 @@ def run_tests(df, rhs, right_loc, right_iloc):
right_iloc["joe"] = [1.0, "@-28", "@-20", "@-12", 17.0]
right_iloc["jolie"] = ["@2", -26.0, -18.0, -10.0, "@18"]
if using_infer_string:
with pytest.raises(
TypeError, match="Must provide strings|Scalar must be NA or str"
):
with pytest.raises(TypeError, match="Invalid value"):
with tm.assert_produces_warning(
FutureWarning, match="incompatible dtype"
):
Expand Down

0 comments on commit 94c167e

Please sign in to comment.