mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors (#112410)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
This commit is contained in:
parent
967f2a3052
commit
2c8b191742
3 changed files with 7 additions and 0 deletions
|
@ -2349,6 +2349,7 @@ func(
|
|||
|
||||
def test_invisible_characters(self):
|
||||
self._check_error('print\x17("Hello")', "invalid non-printable character")
|
||||
self._check_error(b"with(0,,):\n\x01", "invalid non-printable character")
|
||||
|
||||
def test_match_call_does_not_raise_syntax_error(self):
|
||||
code = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue