Skip to content

Commit 3708f38

Browse files
committed
Escape sequence
1 parent fb8b349 commit 3708f38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexing/interval/test_interval.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def test_non_matching(self):
6565

6666
# this is a departure from our current
6767
# indexing scheme, but simpler
68-
with pytest.raises(KeyError, match="^\[-1\]$"):
68+
with pytest.raises(KeyError, match=r"^\[-1\]$"):
6969
s.loc[[-1, 3, 4, 5]]
7070

71-
with pytest.raises(KeyError, match="^\[-1\]$"):
71+
with pytest.raises(KeyError, match=r"^\[-1\]$"):
7272
s.loc[[-1, 3]]
7373

7474
@pytest.mark.arm_slow

0 commit comments

Comments
 (0)