You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
16 lines
296 B
Python
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
|