From ef1bbada96f392aa552f51828cb5389d400c1089 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 7 Jan 2017 01:13:40 +0300 Subject: tests/array*: Allow to skip test if "array" is unavailable. --- tests/basics/array_add.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/basics/array_add.py') diff --git a/tests/basics/array_add.py b/tests/basics/array_add.py index 1dba8a3bc..41cd77b42 100644 --- a/tests/basics/array_add.py +++ b/tests/basics/array_add.py @@ -1,5 +1,10 @@ # test array + array -import array +try: + import array +except ImportError: + import sys + print("SKIP") + sys.exit() a1 = array.array('I', [1]) a2 = array.array('I', [2]) -- cgit v1.2.3