diff options
Diffstat (limited to 'tests/basics/slice_op.py')
| -rw-r--r-- | tests/basics/slice_op.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/basics/slice_op.py b/tests/basics/slice_op.py new file mode 100644 index 000000000..f1e83c5e2 --- /dev/null +++ b/tests/basics/slice_op.py @@ -0,0 +1,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') |
