You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Set comprehension code is not in 2.6
So we need more care in test programs.
This commit is contained in:
@@ -20,9 +20,9 @@ def for_range_stmt():
|
|||||||
for i in range(2):
|
for i in range(2):
|
||||||
i+1
|
i+1
|
||||||
|
|
||||||
# FIXME: add this test
|
# # FIXME: add this test - but for Python 2.7+ only
|
||||||
def set_comp():
|
# def set_comp():
|
||||||
{y for y in range(3)}
|
# {y for y in range(3)}
|
||||||
|
|
||||||
# FIXME: add this test
|
# FIXME: add this test
|
||||||
def list_comp():
|
def list_comp():
|
||||||
|
@@ -1612,7 +1612,7 @@ if __name__ == '__main__':
|
|||||||
return fn.__code__
|
return fn.__code__
|
||||||
|
|
||||||
def test():
|
def test():
|
||||||
{x for x in range(3)}
|
[x for x in range(3)]
|
||||||
|
|
||||||
def gcd(a, b):
|
def gcd(a, b):
|
||||||
if a > b:
|
if a > b:
|
||||||
|
Reference in New Issue
Block a user