tests/dict_fromkeys: Split out skippable part.
This commit is contained in:
parent
ce0b5e078b
commit
ce63a95a85
@ -7,8 +7,3 @@ d = dict.fromkeys([1, 2, 3, 4], 42)
|
|||||||
l = list(d.values())
|
l = list(d.values())
|
||||||
l.sort()
|
l.sort()
|
||||||
print(l)
|
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)
|
|
||||||
|
11
tests/basics/dict_fromkeys2.py
Normal file
11
tests/basics/dict_fromkeys2.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user