mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)
(cherry picked from commit ffd87b7093)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
This commit is contained in:
parent
8524e32d77
commit
d80f4265db
2 changed files with 3 additions and 3 deletions
|
|
@ -651,7 +651,7 @@ def test_syntaxerror_invalid_escape_sequence_multi_line(self):
|
|||
stderr.splitlines()[-3:],
|
||||
[ b' foo = """\\q"""',
|
||||
b' ^^^^^^^^',
|
||||
b'SyntaxError: invalid escape sequence \\q'
|
||||
b'SyntaxError: invalid escape sequence \'\\q\''
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue