Skip to content

Commit a0e800a

Browse files
authored
Update the error message in test_loc.py
1 parent 60b9e69 commit a0e800a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/indexing/test_loc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3162,7 +3162,7 @@ def test_loc_getitem_setitem_integer_slice_keyerrors(self):
31623162

31633163
# non-monotonic, raise KeyError
31643164
s2 = ser.iloc[list(range(5)) + list(range(9, 4, -1))]
3165-
msg = "non-monotonic index with a non-specific label: 3"
3165+
msg = "non-monotonic index with a missing label 3"
31663166
with pytest.raises(KeyError, match=msg):
31673167
s2.loc[3:11]
31683168
with pytest.raises(KeyError, match=msg):

0 commit comments

Comments
 (0)