From 28876d3902c84774018f81204f81b6cc01784855 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 3 Apr 2017 00:17:43 +0300 Subject: tests/float/byte*_construct: Skip on missing array module. --- tests/float/bytes_construct.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/float/bytes_construct.py') diff --git a/tests/float/bytes_construct.py b/tests/float/bytes_construct.py index 0a57e08a2f..8664d7296d 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]))) -- cgit v1.2.3