Commit b23fde17 authored by Stefan Behnel's avatar Stefan Behnel

test for ticket #533: reference leak in 'continue' statement

parent c09d2c10
......@@ -9,6 +9,7 @@ missing_baseclass_in_predecl_T262
cfunc_call_tuple_args_T408
cascaded_list_unpacking_T467
compile.cpp_operators
for_in_break_continue_T533
# CPython regression tests that don't current work:
pyregr.test_threadsignals
......
def for_in():
"""
>>> for_in()
6
"""
i = -1
for L in [[], range(5), range(10)]:
for i in L:
if i > 5:
break
else:
continue
break
return i
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment