From 9870fdd4b0996254216ff85a4dc0f9706843ca50 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 17 Oct 2014 17:28:25 +0000 Subject: [PATCH] tests: Add test for nested while with exc and break. --- tests/basics/while_nest_exc.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/basics/while_nest_exc.py diff --git a/tests/basics/while_nest_exc.py b/tests/basics/while_nest_exc.py new file mode 100644 index 0000000000..35a23a9cf7 --- /dev/null +++ b/tests/basics/while_nest_exc.py @@ -0,0 +1,13 @@ +# test nested whiles within a try-except + +while 1: + print(1) + try: + print(2) + while 1: + print(3) + break + except: + print(4) + print(5) + break