aboutsummaryrefslogtreecommitdiff
path: root/tests/float
diff options
context:
space:
mode:
authorDamien George2019-10-22 17:33:23 +1100
committerDamien George2019-10-22 19:16:54 +1100
commit30e25174bbf077e8a3cbe2a3a6a97795f8d67dc2 (patch)
treee613397f3a1bd429c8774093ef2319aba5d1c9d1 /tests/float
parenta2eea57b1d5456696598703aa4ffdbc7e9fb52ea (diff)
tests: Rename "array" module to "uarray".
Diffstat (limited to 'tests/float')
-rw-r--r--tests/float/array_construct.py9
-rw-r--r--tests/float/bytearray_construct.py9
-rw-r--r--tests/float/bytes_construct.py9
-rw-r--r--tests/float/float_array.py9
4 files changed, 24 insertions, 12 deletions
diff --git a/tests/float/array_construct.py b/tests/float/array_construct.py
index 938675835..eb735c67c 100644
--- a/tests/float/array_construct.py
+++ b/tests/float/array_construct.py
@@ -1,10 +1,13 @@
# test construction of array 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(array('f', array('h', [1, 2])))
print(array('d', array('f', [1, 2])))
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])))
diff --git a/tests/float/bytes_construct.py b/tests/float/bytes_construct.py
index 0e4482e43..96294659b 100644
--- a/tests/float/bytes_construct.py
+++ b/tests/float/bytes_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(bytes(array('f', [1, 2.3])))
diff --git a/tests/float/float_array.py b/tests/float/float_array.py
index 8c8edcff7..0c7f1b3ad 100644
--- a/tests/float/float_array.py
+++ b/tests/float/float_array.py
@@ -1,8 +1,11 @@
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
def test(a):
print(a)