summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/bytes_construct_endian.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/bytes_construct_endian.py')
-rw-r--r--tests/float/bytes_construct_endian.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/float/bytes_construct_endian.py b/tests/float/bytes_construct_endian.py
new file mode 100644
index 0000000000..208f56162f
--- /dev/null
+++ b/tests/float/bytes_construct_endian.py
@@ -0,0 +1,12 @@
+# test construction of bytes from array with float type
+
+try:
+ from uarray import array
+except ImportError:
+ try:
+ from array import array
+ except ImportError:
+ print("SKIP")
+ raise SystemExit
+
+print(bytes(array("f", [1, 2.3])))