diff --git a/tests/basics/try_finally_loops.py b/tests/basics/try_finally_loops.py index 28a8373dc0..06a6b4a0ce 100644 --- a/tests/basics/try_finally_loops.py +++ b/tests/basics/try_finally_loops.py @@ -33,3 +33,11 @@ for i in range(4): print('here') finally: print('finnaly 3') + +# break from within try-finally, within for-loop +for i in [1]: + try: + print(i) + break + finally: + print('finally 4')