diff options
| author | Damien George <damien@micropython.org> | 2024-05-28 10:50:57 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-05-28 10:50:57 +1000 |
| commit | dd4767a7d1ba57f107a652310fdfbd0f0274a0c8 (patch) | |
| tree | ba54d023bc834a86a98728f70021e89c09f5d1fd /tests | |
| parent | ad6750b22ef160a233acf0fbf52619d13bcf273e (diff) | |
tests/basics: Add .exp file for slice_op test.
CPython 3.12 implemented hashing for slices, so now differs to MicroPython.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/slice_op.py | 2 | ||||
| -rw-r--r-- | tests/basics/slice_op.py.exp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/slice_op.py b/tests/basics/slice_op.py index f1e83c5e2..0bb6e365b 100644 --- a/tests/basics/slice_op.py +++ b/tests/basics/slice_op.py @@ -1,3 +1,5 @@ +# Test slice unary operations. +# CPython allows hashing slices, but MicroPython does not. try: t = [][:] diff --git a/tests/basics/slice_op.py.exp b/tests/basics/slice_op.py.exp new file mode 100644 index 000000000..6002b71c5 --- /dev/null +++ b/tests/basics/slice_op.py.exp @@ -0,0 +1 @@ +TypeError |
