Skip to content

Commit ce63a95

Browse files
committed
tests/dict_fromkeys: Split out skippable part.
1 parent ce0b5e0 commit ce63a95

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

tests/basics/dict_fromkeys.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,3 @@
77
l = list(d.values())
88
l.sort()
99
print(l)
10-
11-
# argument to fromkeys has no __len__
12-
d = dict.fromkeys(reversed(range(1)))
13-
#d = dict.fromkeys((x for x in range(1)))
14-
print(d)

tests/basics/dict_fromkeys2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
try:
2+
reversed
3+
except:
4+
import sys
5+
print("SKIP")
6+
sys.exit()
7+
8+
# argument to fromkeys has no __len__
9+
d = dict.fromkeys(reversed(range(1)))
10+
#d = dict.fromkeys((x for x in range(1)))
11+
print(d)

0 commit comments

Comments
 (0)