circuitpython/tests/basics/dict_fromkeys_reversed.py
2024-09-05 14:54:18 -04:00

8 lines
231 B
Python

# CIRCUITPY-CHANGE: micropython does not have this test file
# Skip this test if reversed() isn't built in.
import skip_if
skip_if.no_reversed()
# argument to fromkeys has no __len__
d = dict.fromkeys(reversed(range(1)))
print(d)