op_error_memoryview.py 253 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
# 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')