Set comprehension code is not in 2.6

So we need more care in test programs.
This commit is contained in:
rocky
2016-06-06 18:01:47 -04:00
parent bdfe14069c
commit e9c8c11071
2 changed files with 4 additions and 4 deletions

View File

@@ -20,9 +20,9 @@ def for_range_stmt():
for i in range(2):
i+1
# FIXME: add this test
def set_comp():
{y for y in range(3)}
# # FIXME: add this test - but for Python 2.7+ only
# def set_comp():
# {y for y in range(3)}
# FIXME: add this test
def list_comp():

View File

@@ -1612,7 +1612,7 @@ if __name__ == '__main__':
return fn.__code__
def test():
{x for x in range(3)}
[x for x in range(3)]
def gcd(a, b):
if a > b: