Skip to content

Commit 976ea80

Browse files
authored
Update the error message in test_indexing.py
1 parent a0e800a commit 976ea80

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/tests/series/indexing/test_indexing.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,8 @@ def test_setitem_empty_indexer(indexer, val):
404404
tm.assert_frame_equal(df, expected)
405405

406406

407-
def test_loc_non_monotonic_index_with_non_specific_label():
408-
msg = (
409-
"Cannot get left slice bound for non-monotonic "
410-
"index with a non-specific label: 4"
411-
)
407+
def test_loc_non_monotonic_index_with_missing_label():
408+
msg = "Cannot get left slice bound for non-monotonic index with a missing label 4"
412409
ser = Series([3, 6, 7, 6], index=[3, 8, 7, 6])
413410
with pytest.raises(KeyError, match=msg):
414411
ser.loc[4:7]

0 commit comments

Comments
 (0)