summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-05-21 15:09:51 (GMT)
committerGitHub <noreply@github.com>2021-05-21 15:09:51 (GMT)
commitb51081c1a8cf01b92ba0692173e1b9274a57f455 (patch)
treec3727d9b9652471014b5eac5245177382ed41780 /Lib/test/test_exceptions.py
parentb11a951f16f0603d98de24fee5c023df83ea552c (diff)
downloadcpython-b51081c1a8cf01b92ba0692173e1b9274a57f455.zip
cpython-b51081c1a8cf01b92ba0692173e1b9274a57f455.tar.gz
cpython-b51081c1a8cf01b92ba0692173e1b9274a57f455.tar.bz2
bpo-44180: Report generic syntax errors in the furthest position reached in the first parser pass (GH-26253)
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 aefdd7b..5fb651f 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)