From a0cbc108ba9dbdd4cc223486561f3e6a347e2d0a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 9 Mar 2017 00:11:05 +0100 Subject: tests/float: Make various tests skippable. --- tests/float/array_construct.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/float/array_construct.py') diff --git a/tests/float/array_construct.py b/tests/float/array_construct.py index a25cc72c80..7e01fd4768 100644 --- a/tests/float/array_construct.py +++ b/tests/float/array_construct.py @@ -1,6 +1,11 @@ # test construction of array from array with float type -from array import array +try: + from array import array +except ImportError: + import sys + print("SKIP") + sys.exit() print(array('f', array('h', [1, 2]))) print(array('d', array('f', [1, 2]))) -- cgit v1.2.3