Commit 28876d39 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 499ea8b2
# 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])))
# 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])))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment