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