From e12aaa5d46643ce3e85a3b03a3c3fa240678f0a6 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 20 Feb 2009 21:26:46 -0800 Subject: [PATCH] try-break test --- tests/run/tryfinally.pyx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.26.2