tests/array*: Allow to skip test if "array" is unavailable.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
# test construction of array.array from different objects
|
||||
|
||||
from array import array
|
||||
try:
|
||||
from array import array
|
||||
except ImportError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
# raw copy from bytes, bytearray
|
||||
print(array('h', b'12'))
|
||||
|
||||
Reference in New Issue
Block a user