micropython/tests/basics/slice_op.py

16 wiersze
276 B
Python

try:
t = [][:]
except:
print("SKIP")
raise SystemExit
# REVISIT: slice comparison operators are not implemented in MicroPython
# test that slice is not hashable, i.e. it can't be used to copy a dict
try:
{}[:] = {}
except TypeError:
print('TypeError')