diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/tests/test_ctypeslib.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/numpy/tests/test_ctypeslib.py b/numpy/tests/test_ctypeslib.py index 530764193..ceb574911 100644 --- a/numpy/tests/test_ctypeslib.py +++ b/numpy/tests/test_ctypeslib.py @@ -4,8 +4,13 @@ from numpy.testing import * class TestLoadLibrary(NumpyTestCase): def check_basic(self): - cdll = load_library('multiarray', - np.core.multiarray.__file__) + try: + cdll = load_library('multiarray', + np.core.multiarray.__file__) + except ImportError, e: + msg = "ctypes is not available on this python: skipping the test" \ + " (import error was: %s)" % str(e) + print msg class TestNdpointer(NumpyTestCase): def check_dtype(self): |