summaryrefslogtreecommitdiff
path: root/tests/float/bytes_construct.py
diff options
context:
space:
mode:
authorGlenn Ruben Bakke <glennbakke@gmail.com>2017-04-09 17:45:32 +0200
committerGlenn Ruben Bakke <glennbakke@gmail.com>2017-04-09 17:45:32 +0200
commit360243af92bd096522153521bce323f60bdb1b80 (patch)
treee3b0e94099da7ce5e9d895e22e02435c61f205e0 /tests/float/bytes_construct.py
parent5d06aa32609959115b496ac0e596438bfdbda038 (diff)
parentb87432b8fb8332548be11b63c9139065ce565f91 (diff)
Merge branch 'master' into nrf5_no_sdk
Diffstat (limited to 'tests/float/bytes_construct.py')
-rw-r--r--tests/float/bytes_construct.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/float/bytes_construct.py b/tests/float/bytes_construct.py
index 0a57e08a2..8664d7296 100644
--- a/tests/float/bytes_construct.py
+++ b/tests/float/bytes_construct.py
@@ -1,5 +1,10 @@
# test construction of bytearray from array with float type
-from array import array
+try:
+ from array import array
+except ImportError:
+ import sys
+ print("SKIP")
+ sys.exit()
print(bytes(array('f', [1, 2.3])))