diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-03 18:06:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-03 18:06:45 -0700 |
| commit | 756b7b9248885d65c2b3b9f1c5a8f66aa2e8de7a (patch) | |
| tree | 7d72197323ead46e2016c62236aa88293d70300f /Lib/test/test_exceptions.py | |
| parent | 4d58730a3ade8dff09619ec8a7a01ef01bff99d1 (diff) | |
| download | cpython-git-756b7b9248885d65c2b3b9f1c5a8f66aa2e8de7a.tar.gz | |
bpo-43822: Prioritize tokenizer errors over custom syntax errors when raising parser exceptions (GH-25866)
(cherry picked from commit 9142088e7454a392b69a627863b235ecc32aea54)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
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 bc0404ea4b..3c427fed56 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) |
