micropython/tests/basics/op_error_memoryview.py

14 lines
253 B
Python

# test errors from bad operations (unary, binary, etc)
try:
memoryview
except:
print("SKIP")
raise SystemExit
# unsupported binary operators
try:
m = memoryview(bytearray())
m += bytearray()
except TypeError:
print('TypeError')