tests/float/byte*_construct: Skip on missing array module.
This commit is contained in:
parent
499ea8b253
commit
28876d3902
@ -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])))
|
||||
|
@ -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])))
|
||||
|
Loading…
x
Reference in New Issue
Block a user