summaryrefslogtreecommitdiff
path: root/numpy/tests
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-03-16 16:37:08 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-03-16 16:37:08 +0000
commit9318f7ac788958fed43d7a15c852c2e93d310382 (patch)
treecf97b39046c66d50464aeeae4de807e2a9e35048 /numpy/tests
parent94766ae3c56a23ef8de7f2c7c2853029078d09f1 (diff)
downloadnumpy-9318f7ac788958fed43d7a15c852c2e93d310382.tar.gz
In ctypes.load_library, also attempt to load .so files on failure.
Build processes sometimes produce libraries with incorrect suffixes on non-linux platforms.
Diffstat (limited to 'numpy/tests')
-rw-r--r--numpy/tests/test_ctypeslib.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/tests/test_ctypeslib.py b/numpy/tests/test_ctypeslib.py
index 5558445b1..530764193 100644
--- a/numpy/tests/test_ctypeslib.py
+++ b/numpy/tests/test_ctypeslib.py
@@ -1,7 +1,12 @@
import numpy as np
-from numpy.ctypeslib import ndpointer
+from numpy.ctypeslib import ndpointer, load_library
from numpy.testing import *
+class TestLoadLibrary(NumpyTestCase):
+ def check_basic(self):
+ cdll = load_library('multiarray',
+ np.core.multiarray.__file__)
+
class TestNdpointer(NumpyTestCase):
def check_dtype(self):
dt = np.intc