tests/array*: Allow to skip test if "array" is unavailable.

This commit is contained in:
Paul Sokolovsky
2017-01-07 01:13:40 +03:00
parent e5a6a26330
commit ef1bbada96
6 changed files with 36 additions and 6 deletions

View File

@@ -1,5 +1,10 @@
# test array + array
import array
try:
import array
except ImportError:
import sys
print("SKIP")
sys.exit()
a1 = array.array('I', [1])
a2 = array.array('I', [2])