Skip to content

Commit 449fdfc

Browse files
[3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956)
(cherry picked from commit 97cd45b) Co-authored-by: Anthony Sottile <asottile@umich.edu>
1 parent 2f26683 commit 449fdfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_syntax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,7 @@ def test_error_parenthesis(self):
21452145

21462146
# Examples with dencodings
21472147
s = b'# coding=latin\n(aaaaaaaaaaaaaaaaa\naaaaaaaaaaa\xb5'
2148-
self._check_error(s, "'\(' was never closed")
2148+
self._check_error(s, r"'\(' was never closed")
21492149

21502150
def test_error_string_literal(self):
21512151

0 commit comments

Comments
 (0)