diff options
author | David Cournapeau <cournape@gmail.com> | 2008-03-23 06:13:17 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-03-23 06:13:17 +0000 |
commit | 8eed71c4f3f7ce0d394db3741facb2f15ed2459e (patch) | |
tree | 04cd3a5ddb3f8e8a9822d776892eba5b04b2e607 /numpy/tests | |
parent | 5cb370e9234582f62231384c26a426301dad3331 (diff) | |
download | numpy-8eed71c4f3f7ce0d394db3741facb2f15ed2459e.tar.gz |
Fix has_sse3 and add has_ssse3 function for cpuinfo on linux.
Diffstat (limited to 'numpy/tests')
-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): |