You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
18 lines
377 B
Python
18 lines
377 B
Python
# From 2.6 test_datetime.py
|
|
# Bug is in parsing (x is 0 or x is 1) and (y is 5 or y is 2)
|
|
# correctly.
|
|
|
|
# This code is RUNNABLE!
|
|
result = []
|
|
for y in (1, 2, 10):
|
|
x = cmp(1, y)
|
|
if (x is 0 or x is 1) and (y is 5 or y is 2):
|
|
expected = 10
|
|
elif y is 2:
|
|
expected = 2
|
|
else:
|
|
expected = 3
|
|
result.append(expected)
|
|
|
|
assert result == [3, 2, 3]
|