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-21 08:29:58 -0700
committerGitHub <noreply@github.com>2021-05-21 16:29:58 +0100
commit07dba474c582e61ca455846da7597d4346324e04 (patch)
tree5d10ddbfa382e3552ca4886822e130dbe49fd9a1 /Lib/test/test_exceptions.py
parentf14015adf52014c2345522fe32d43f15f001c986 (diff)
downloadcpython-git-07dba474c582e61ca455846da7597d4346324e04.tar.gz
bpo-44180: Report generic syntax errors in the furthest position reached in the first parser pass (GH-26253) (GH-26281)
(cherry picked from commit b51081c1a8cf01b92ba0692173e1b9274a57f455) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index aefdd7b769..5fb651f4c2 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -213,6 +213,7 @@ class ExceptionTests(unittest.TestCase):
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)
+ check("ages = {'Alice'=22, 'Bob'=23}", 1, 16)
# Errors thrown by compile.c
check('class foo:return 1', 1, 11)