Skip to content

Commit f3933d4

Browse files
[3.12] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112955)
(cherry picked from commit 97cd45b) Co-authored-by: Anthony Sottile <[email protected]>
1 parent 78a5010 commit f3933d4

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
@@ -2298,7 +2298,7 @@ def test_error_parenthesis(self):
22982298

22992299
# Examples with dencodings
23002300
s = b'# coding=latin\n(aaaaaaaaaaaaaaaaa\naaaaaaaaaaa\xb5'
2301-
self._check_error(s, "'\(' was never closed")
2301+
self._check_error(s, r"'\(' was never closed")
23022302

23032303
def test_error_string_literal(self):
23042304

0 commit comments

Comments
 (0)