tests/float/byte*_construct: Skip on missing array module.

This commit is contained in:
Paul Sokolovsky 2017-04-03 00:17:43 +03:00
parent 499ea8b253
commit 28876d3902
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,10 @@
# test construction of bytearray from array with float type
from array import array
try:
from array import array
except ImportError:
import sys
print("SKIP")
sys.exit()
print(bytearray(array('f', [1, 2.3])))

View File

@ -1,5 +1,10 @@
# test construction of bytearray from array with float type
from array import array
try:
from array import array
except ImportError:
import sys
print("SKIP")
sys.exit()
print(bytes(array('f', [1, 2.3])))