2017-02-15 15:11:16 +00:00
|
|
|
# test errors from bad operations (unary, binary, etc)
|
|
|
|
try:
|
|
|
|
memoryview
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
2017-06-10 18:03:01 +01:00
|
|
|
raise SystemExit
|
2017-02-15 15:11:16 +00:00
|
|
|
|
|
|
|
# unsupported binary operators
|
2018-02-14 05:50:20 +00:00
|
|
|
try:
|
|
|
|
m = memoryview(bytearray())
|
|
|
|
m += bytearray()
|
|
|
|
except TypeError:
|
|
|
|
print('TypeError')
|