mirror of
https://github.com/python/cpython.git
synced 2025-07-22 10:45:22 +00:00
[3.13] gh-116042: Fix location for SyntaxErrors of invalid escapes in the tokenizer (GH-116049) (#130066)
(cherry picked from commit56eda25633
) (cherry picked from commit369704b428
)
This commit is contained in:
parent
4c2a59b7b8
commit
8d1d36b742
5 changed files with 82 additions and 18 deletions
|
@ -660,7 +660,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
self.assertEqual(
|
||||
stderr.splitlines()[-3:],
|
||||
[ b' foo = """\\q"""',
|
||||
b' ^^^^^^^^',
|
||||
b' ^^',
|
||||
b'SyntaxError: invalid escape sequence \'\\q\''
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue