Skip to content

Commit

Permalink
tests/basics: Add .exp file for slice_op test.
Browse files Browse the repository at this point in the history
CPython 3.12 implemented hashing for slices, so now differs to MicroPython.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed May 28, 2024
1 parent ad6750b commit dd4767a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/basics/slice_op.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Test slice unary operations.
# CPython allows hashing slices, but MicroPython does not.

try:
t = [][:]
Expand Down
1 change: 1 addition & 0 deletions tests/basics/slice_op.py.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeError

0 comments on commit dd4767a

Please sign in to comment.