diff --git a/tests/28_exception.py b/tests/28_exception.py index 9c174312..85828d6d 100644 --- a/tests/28_exception.py +++ b/tests/28_exception.py @@ -190,6 +190,17 @@ except KeyError: x = 5 assert x == 5 +a = [] +for i in range(6): + try: + [][1] + except IndexError: + if i == 2: + continue + else: + a.append(i) +assert a == [0, 1, 3, 4, 5] + """ # finally, only def finally_only():