summaryrefslogtreecommitdiff
path: root/tests/float/bytearray_construct.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/bytearray_construct.py')
-rw-r--r--tests/float/bytearray_construct.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/float/bytearray_construct.py b/tests/float/bytearray_construct.py
index e960d624e..4e7631b2b 100644
--- a/tests/float/bytearray_construct.py
+++ b/tests/float/bytearray_construct.py
@@ -1,9 +1,12 @@
# test construction of bytearray from array with float type
try:
- from array import array
+ from uarray import array
except ImportError:
- print("SKIP")
- raise SystemExit
+ try:
+ from array import array
+ except ImportError:
+ print("SKIP")
+ raise SystemExit
print(bytearray(array('f', [1, 2.3])))