summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/bytearray_construct.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-08 15:41:37 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-08 15:41:37 +0000
commit19b3fea6a885d071a1216614ee3f766aba947cbf (patch)
treef1fe2527de3a602c1206bd39d370132b52fbde8a /tests/float/bytearray_construct.py
parent115187f7ceb11b0cb0b77fd98ee3c5be5d03b6f5 (diff)
downloadmicropython-19b3fea6a885d071a1216614ee3f766aba947cbf.tar.gz
micropython-19b3fea6a885d071a1216614ee3f766aba947cbf.zip
tests: Separate out test cases that rely on float support to float/ dir.
Diffstat (limited to 'tests/float/bytearray_construct.py')
-rw-r--r--tests/float/bytearray_construct.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/float/bytearray_construct.py b/tests/float/bytearray_construct.py
new file mode 100644
index 0000000000..f729266351
--- /dev/null
+++ b/tests/float/bytearray_construct.py
@@ -0,0 +1,5 @@
+# test construction of bytearray from array with float type
+
+from array import array
+
+print(bytearray(array('f', [1, 2.3])))