tests/dict_fromkeys: Split out skippable part.

This commit is contained in:
Paul Sokolovsky 2017-03-09 08:31:35 +01:00
parent ce0b5e078b
commit ce63a95a85
2 changed files with 11 additions and 5 deletions

View File

@ -7,8 +7,3 @@ d = dict.fromkeys([1, 2, 3, 4], 42)
l = list(d.values())
l.sort()
print(l)
# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
#d = dict.fromkeys((x for x in range(1)))
print(d)

View File

@ -0,0 +1,11 @@
try:
reversed
except:
import sys
print("SKIP")
sys.exit()
# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
#d = dict.fromkeys((x for x in range(1)))
print(d)