diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-05-04 00:32:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 00:32:46 (GMT) |
commit | 9142088e7454a392b69a627863b235ecc32aea54 (patch) | |
tree | 87be7dd5e9a05f75791872a0cf694bf7fad2e9ba /Lib/test/test_exceptions.py | |
parent | 0aaf13a7140f411c2f1e7b206e1331ad8589ebed (diff) | |
download | cpython-9142088e7454a392b69a627863b235ecc32aea54.zip cpython-9142088e7454a392b69a627863b235ecc32aea54.tar.gz cpython-9142088e7454a392b69a627863b235ecc32aea54.tar.bz2 |
bpo-43822: Prioritize tokenizer errors over custom syntax errors when raising parser exceptions (GH-25866)
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 bc0404e..3c427fe 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -210,7 +210,7 @@ class ExceptionTests(unittest.TestCase): check('x = "a', 1, 5) check('lambda x: x = 2', 1, 1) check('f{a + b + c}', 1, 2) - check('[file for str(file) in []\n])', 1, 11) + check('[file for str(file) in []\n])', 2, 2) check('[\nfile\nfor str(file)\nin\n[]\n]', 3, 5) check('[file for\n str(file) in []]', 2, 2) |