summaryrefslogtreecommitdiff
path: root/tests/float 2/bytes_construct.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float 2/bytes_construct.py')
-rw-r--r--tests/float 2/bytes_construct.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/float 2/bytes_construct.py b/tests/float 2/bytes_construct.py
new file mode 100644
index 000000000..0e4482e43
--- /dev/null
+++ b/tests/float 2/bytes_construct.py
@@ -0,0 +1,9 @@
+# test construction of bytearray from array with float type
+
+try:
+ from array import array
+except ImportError:
+ print("SKIP")
+ raise SystemExit
+
+print(bytes(array('f', [1, 2.3])))