mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
tests/dict_fromkeys: Split out skippable part.
This commit is contained in:
@@ -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)
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user