diff options
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/test/python/test_api.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py index 23345e8..0b06292 100644 --- a/bindings/test/python/test_api.py +++ b/bindings/test/python/test_api.py @@ -366,7 +366,11 @@ class InstanceTests(unittest.TestCase): ) def testRun(self): - import numpy + try: + import numpy + except ImportError: + sys.stderr.write("warning: Missing numpy, not testing instance\n") + return n_samples = 100 buf = numpy.zeros(n_samples) |