04c55f5828
For builds without the compiler enabled (and hence without eval/exec) it is useful to still be able to run as many tests as possible.
14 lines
253 B
Python
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')
|