Skip to content
Snippets Groups Projects
Commit 28876d39 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 499ea8b2
No related branches found
No related tags found
No related merge requests found
# 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])))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment