From a9ca83d228477dd6966037a0ffeb05072528efd0 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 16 Jan 2018 20:14:37 -0500 Subject: [PATCH] Disable these tests if numpy isn't installed --- tools/python/test/test_matrix.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/python/test/test_matrix.py b/tools/python/test/test_matrix.py index be7c8fc71..a010a13f7 100644 --- a/tools/python/test/test_matrix.py +++ b/tools/python/test/test_matrix.py @@ -4,7 +4,12 @@ try: except ImportError: import pickle from pytest import raises -import numpy + +try: + import numpy +except ImportError: + # Just skip these tests if numpy isn't installed + exit(0) def test_matrix_empty_init():