diff options
Diffstat (limited to 'tests/float/bytearray_construct.py')
| -rw-r--r-- | tests/float/bytearray_construct.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/float/bytearray_construct.py b/tests/float/bytearray_construct.py index f72926635..e960d624e 100644 --- a/tests/float/bytearray_construct.py +++ b/tests/float/bytearray_construct.py @@ -1,5 +1,9 @@ # test construction of bytearray from array with float type -from array import array +try: + from array import array +except ImportError: + print("SKIP") + raise SystemExit print(bytearray(array('f', [1, 2.3]))) |
