Commit e12aaa5d authored by Robert Bradshaw's avatar Robert Bradshaw

try-break test

parent 778293e8
...@@ -31,6 +31,7 @@ TypeError ...@@ -31,6 +31,7 @@ TypeError
3 3
>>> try_return_none_1() >>> try_return_none_1()
>>> try_return_none_2() >>> try_return_none_2()
>>> try_break()
""" """
def finally_except(): def finally_except():
...@@ -83,3 +84,11 @@ def try_return_none_2(): ...@@ -83,3 +84,11 @@ def try_return_none_2():
return <object> _none() return <object> _none()
finally: finally:
return <object> _none() return <object> _none()
def try_break():
for a in "abcd":
try:
if a == 'c':
break
except:
break
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment