diff options
| author | Mark Shannon <mark@hotpy.org> | 2021-05-06 13:38:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-06 13:38:50 +0100 |
| commit | 8d4b18429de504445a1338077e495090d91044b4 (patch) | |
| tree | 10ce565ceed11df95a29bbfa4299e187d2e07f61 /Lib/test/test_exceptions.py | |
| parent | 60ba0b68470a584103e28958d91e93a6db37ec92 (diff) | |
| download | cpython-git-8d4b18429de504445a1338077e495090d91044b4.tar.gz | |
Correct location for syntax error in try-except (GH-25939)
Diffstat (limited to 'Lib/test/test_exceptions.py')
| -rw-r--r-- | Lib/test/test_exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 3c427fed56..1fe479fbe8 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -218,7 +218,7 @@ class ExceptionTests(unittest.TestCase): check('class foo:return 1', 1, 11) check('def f():\n continue', 2, 3) check('def f():\n break', 2, 3) - check('try:\n pass\nexcept:\n pass\nexcept ValueError:\n pass', 2, 3) + check('try:\n pass\nexcept:\n pass\nexcept ValueError:\n pass', 3, 1) # Errors thrown by tokenizer.c check('(0x+1)', 1, 3) |
