Skip to content

Commit

Permalink
Fix SyntaxWarning in test_syntax.py (pythonGH-112944)
Browse files Browse the repository at this point in the history
(cherry picked from commit 97cd45b)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
  • Loading branch information
asottile authored and miss-islington committed Dec 11, 2023
1 parent 78a5010 commit 3613bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,7 @@ def test_error_parenthesis(self):

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

def test_error_string_literal(self):

Expand Down

0 comments on commit 3613bc0

Please sign in to comment.