circuitpython/tests/basics/slice_op.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
276 B
Python
Raw Normal View History

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')