diff options
Diffstat (limited to 'tests/float/bytes_construct.py')
-rw-r--r-- | tests/float/bytes_construct.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/float/bytes_construct.py b/tests/float/bytes_construct.py index 0e4482e436..96294659bf 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]))) |