Files
python-uncompyle6/test/simple_source/bug36/00_if_elif.py
2018-12-31 08:39:08 -05:00

16 lines
296 B
Python

# Python 3 bug in not detecting the end bounds of if elif.
def testit(b):
if b == 1:
a = 1
elif b == 2:
a = 2
else:
a = 4
return a
for x in (1, 2, 4):
x = testit(x)
assert x is not None, "Should have returned a value, not None"
assert x == x