summaryrefslogtreecommitdiff
path: root/numpy/linalg
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-11-08 07:01:16 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-11-08 07:01:16 +0000
commitc098984f9423332b20d755d44d5880a1bf288238 (patch)
tree6ed5b0349fa0738f1d11fc089b853bdaf1bccb1c /numpy/linalg
parent9742e30558a9a79cbfe875d2ad7e61b38b0f930d (diff)
downloadnumpy-c098984f9423332b20d755d44d5880a1bf288238.tar.gz
Fix fortrab ABI mismatch test.
Diffstat (limited to 'numpy/linalg')
-rw-r--r--numpy/linalg/tests/test_build.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py
index 84784b171..95ece5f32 100644
--- a/numpy/linalg/tests/test_build.py
+++ b/numpy/linalg/tests/test_build.py
@@ -35,13 +35,14 @@ class FindDependenciesLdd:
return founds
-@dec.skipif(not(sys.platform[:5] == 'linux'),
- "Skipping fortran compiler mismatch on non Linux platform")
-def test_f77_mismatch():
- f = FindDependenciesLdd()
- deps = f.grep_dependencies(lapack_lite.__file__,
- ['libg2c', 'libgfortran'])
- if len(deps) > 1:
- raise AssertionFailure("Both g77 and gfortran runtimes linked in "\
- "lapack_lite ! This is likely to cause random crashes and wrong "\
- "results")
+class TestF77Mismatch(TestCase):
+ @dec.skipif(not(sys.platform[:5] == 'linux'),
+ "Skipping fortran compiler mismatch on non Linux platform")
+ def test_lapack(self):
+ f = FindDependenciesLdd()
+ deps = f.grep_dependencies(lapack_lite.__file__,
+ ['libg2c', 'libgfortran'])
+ self.failIf(len(deps) > 1,
+"""Both g77 and gfortran runtimes linked in lapack_lite ! This is likely to
+cause random crashes and wrong results. See numpy INSTALL.txt for more
+information.""")