From: Robert Bradshaw Date: Sat, 21 Feb 2009 05:26:46 +0000 (-0800) Subject: try-break test X-Git-Tag: 0.11.rc~74 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e12aaa5d46643ce3e85a3b03a3c3fa240678f0a6;p=cython.git try-break test --- diff --git a/tests/run/tryfinally.pyx b/tests/run/tryfinally.pyx index 37a67bd6..4f7aaa5a 100644 --- a/tests/run/tryfinally.pyx +++ b/tests/run/tryfinally.pyx @@ -31,6 +31,7 @@ TypeError 3 >>> try_return_none_1() >>> try_return_none_2() +>>> try_break() """ def finally_except(): @@ -83,3 +84,11 @@ def try_return_none_2(): return _none() finally: return _none() + +def try_break(): + for a in "abcd": + try: + if a == 'c': + break + except: + break