mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
16 lines
276 B
Python
16 lines
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')
|