mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
gh-128016: Improved invalid escape sequence warning message (#128020)
This commit is contained in:
parent
40a4d88a14
commit
8d8b854824
9 changed files with 63 additions and 25 deletions
|
@ -659,7 +659,8 @@ class CmdLineTest(unittest.TestCase):
|
|||
stderr.splitlines()[-3:],
|
||||
[ b' foo = """\\q"""',
|
||||
b' ^^^^^^^^',
|
||||
b'SyntaxError: invalid escape sequence \'\\q\''
|
||||
b'SyntaxError: "\\q" is an invalid escape sequence. '
|
||||
b'Did you mean "\\\\q"? A raw string is also an option.'
|
||||
],
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue