There was an error while loading. Please reload this page.
1 parent 643d932 commit 627efd9Copy full SHA for 627efd9
1 file changed
Lib/test/test_grammar.py
@@ -193,9 +193,8 @@ def f():
193
else: pass
194
[3]
195
196
-print 'try_stmt' # 'try' ':' suite (except_clause ':' suite)* ['finally' ':' suite]
+print 'try_stmt' # 'try' ':' suite (except_clause ':' suite)+ | 'try' ':' suite 'finally' ':' suite
197
### except_clause: 'except' [expr [',' expr]]
198
-try: pass
199
try: 1/0
200
except ZeroDivisionError: pass
201
@@ -205,9 +204,6 @@ def f():
205
204
except: pass
206
try: pass
207
finally: pass
208
-try: 1/0
209
-except: pass
210
-finally: pass
211
212
print 'suite' # simple_stmt | NEWLINE INDENT NEWLINE* (stmt NEWLINE*)+ DEDENT
213
if 1: pass
0 commit comments