diff options
author | Matthieu Dartiailh <marul@laposte.net> | 2022-04-05 13:47:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 13:47:13 (GMT) |
commit | aa0f056a00c4bcaef83d729e042359ddae903382 (patch) | |
tree | 45b026af73776c5f38423e44b989df335f52f405 /Lib/test/test_syntax.py | |
parent | f1606a5ba50bdc4e7d335d62297b4b4043a25e6e (diff) | |
download | cpython-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.py | 7 |
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): |