Files
python-uncompyle6/test/simple_source/exception/04_assert_continue.py
rocky 535df1592e Another 3.6 control-flow bug...
and add source to some previous bytecode tests
2018-03-31 19:28:35 -04:00

17 lines
360 B
Python

# Adapted from Python 3.3 idlelib/PyParse.py
# Bug is continue flowing back to while messing up the determination
# that it is inside an "if".
# RUNNABLE!
def _study1(i, n, ch):
while i == 3:
i = 4
if ch:
i = 10
assert i < 5
continue
if n:
return n
assert _study1(3, 4, False) == 4