diff options
| author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2023-11-27 18:36:11 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 18:36:11 (GMT) |
| commit | 2c8b19174274c183eb652932871f60570123fe99 (patch) | |
| tree | b2b7b1ad193e1aa8f8cae9b2b62437e65e71a658 /Lib/test/test_syntax.py | |
| parent | 967f2a3052c2d22e31564b428a9aa8cc63dc2a9f (diff) | |
| download | cpython-2c8b19174274c183eb652932871f60570123fe99.zip cpython-2c8b19174274c183eb652932871f60570123fe99.tar.gz cpython-2c8b19174274c183eb652932871f60570123fe99.tar.bz2 | |
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>
Diffstat (limited to 'Lib/test/test_syntax.py')
| -rw-r--r-- | Lib/test/test_syntax.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index f6fa649..e80e953 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -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 = """ |
