summaryrefslogtreecommitdiff
path: root/tests/basics/slice_op.py
blob: f1e83c5e27dca688fb471afa3baf07255755e4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

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