fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)

This commit is contained in:
Ned Batchelder 2021-06-07 20:15:46 -04:00 committed by GitHub
parent 165c884154
commit ffd87b7093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -651,7 +651,7 @@ class CmdLineTest(unittest.TestCase):
stderr.splitlines()[-3:],
[ b' foo = """\\q"""',
b' ^^^^^^^^',
b'SyntaxError: invalid escape sequence \\q'
b'SyntaxError: invalid escape sequence \'\\q\''
],
)