summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
authorMatthieu Dartiailh <marul@laposte.net>2022-04-05 13:47:13 (GMT)
committerGitHub <noreply@github.com>2022-04-05 13:47:13 (GMT)
commitaa0f056a00c4bcaef83d729e042359ddae903382 (patch)
tree45b026af73776c5f38423e44b989df335f52f405 /Lib/test/test_syntax.py
parentf1606a5ba50bdc4e7d335d62297b4b4043a25e6e (diff)
downloadcpython-aa0f056a00c4bcaef83d729e042359ddae903382.zip
cpython-aa0f056a00c4bcaef83d729e042359ddae903382.tar.gz
cpython-aa0f056a00c4bcaef83d729e042359ddae903382.tar.bz2
bpo-47212: Improve error messages for un-parenthesized generator expressions (GH-32302)
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 3e79ebf..96e5c12 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -1309,6 +1309,13 @@ Specialized indentation errors:
>>> try:
... something()
+ ... except:
+ ... pass
+ Traceback (most recent call last):
+ IndentationError: expected an indented block after 'except' statement on line 3
+
+ >>> try:
+ ... something()
... except A:
... pass
Traceback (most recent call last):