2021-05-20 02:02:57 +02:00
|
|
|
# test construction of bytes from array with float type
|
2015-01-08 16:41:37 +01:00
|
|
|
|
2017-04-02 23:17:43 +02:00
|
|
|
try:
|
2019-10-22 08:33:23 +02:00
|
|
|
from uarray import array
|
2017-04-02 23:17:43 +02:00
|
|
|
except ImportError:
|
2019-10-22 08:33:23 +02:00
|
|
|
try:
|
|
|
|
from array import array
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2015-01-08 16:41:37 +01:00
|
|
|
|
2021-06-18 06:16:07 +02:00
|
|
|
print(bytes(array("f", [1, 2.5])))
|