8000 tests/basics: Add .exp file for slice_op test. · micropython/micropython@dd4767a · GitHub
[go: up one dir, main page]

Skip to content

Commit dd4767a

Browse files
committed
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>
1 parent ad6750b commit dd4767a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/basics/slice_op.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Test slice unary operations.
2+
# CPython allows hashing slices, but MicroPython does not.
13

24
try:
35
t = [][:]

tests/basics/slice_op.py.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TypeError

0 commit comments

Comments
 (0)
0