diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-03 00:17:43 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-03 00:17:43 +0300 |
commit | 28876d3902c84774018f81204f81b6cc01784855 (patch) | |
tree | 362baaa951d659e5d398d68eb59bb96e13a40cbe | |
parent | 499ea8b2532010c17b2f52825b90c4991db02aa5 (diff) |
tests/float/byte*_construct: Skip on missing array module.
-rw-r--r-- | tests/float/bytearray_construct.py | 7 | ||||
-rw-r--r-- | tests/float/bytes_construct.py | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/tests/float/bytearray_construct.py b/tests/float/bytearray_construct.py index f72926635..db946a99d 100644 --- a/tests/float/bytearray_construct.py +++ b/tests/float/bytearray_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(bytearray(array('f', [1, 2.3]))) 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]))) |