From 9318f7ac788958fed43d7a15c852c2e93d310382 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sun, 16 Mar 2008 16:37:08 +0000 Subject: In ctypes.load_library, also attempt to load .so files on failure. Build processes sometimes produce libraries with incorrect suffixes on non-linux platforms. --- numpy/tests/test_ctypeslib.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'numpy/tests') 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 -- cgit v1.2.1