summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-03 18:06:45 -0700
committerGitHub <noreply@github.com>2021-05-03 18:06:45 -0700
commit756b7b9248885d65c2b3b9f1c5a8f66aa2e8de7a (patch)
tree7d72197323ead46e2016c62236aa88293d70300f /Lib/test/test_exceptions.py
parent4d58730a3ade8dff09619ec8a7a01ef01bff99d1 (diff)
downloadcpython-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.py2
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)