Skip to content
Browse files

TST: linalg: fix cblas/clapack imports in tests

  • Loading branch information...
1 parent a4f9d26 commit f14d232f20a6f96fcfbab3bd454b5ece3aae94cd @pv committed Nov 28, 2012
Showing with 11 additions and 2 deletions.
  1. +6 −1 scipy/linalg/tests/test_blas.py
  2. +5 −1 scipy/linalg/tests/test_lapack.py
View
7 scipy/linalg/tests/test_blas.py
@@ -16,7 +16,12 @@
from numpy.testing import TestCase, run_module_suite, assert_equal, \
assert_almost_equal, assert_array_almost_equal
-from scipy.linalg import _fblas as fblas, _cblas as cblas, get_blas_funcs
+from scipy.linalg import _fblas as fblas, get_blas_funcs
+
+try:
+ from scipy.linalg import _cblas as cblas
+except ImportError:
+ cblas = None
def test_get_blas_funcs():
# check that it returns Fortran code for arrays that are
View
6 scipy/linalg/tests/test_lapack.py
@@ -8,7 +8,11 @@
import numpy as np
-from scipy.linalg import _flapack as flapack, _clapack as clapack
+from scipy.linalg import _flapack as flapack
+try:
+ from scipy.linalg import _clapack as clapack
+except ImportError:
+ clapack = None
from scipy.linalg.lapack import get_lapack_funcs
REAL_DTYPES = [np.float32, np.float64]

0 comments on commit f14d232

Please sign in to comment.
Something went wrong with that request. Please try again.