summaryrefslogtreecommitdiff
path: root/numpy/linalg
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-11-08 06:51:59 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-11-08 06:51:59 +0000
commit9742e30558a9a79cbfe875d2ad7e61b38b0f930d (patch)
tree481c8a0de3c00cef53438d45f6549789c3c871e1 /numpy/linalg
parent319ff38951b9ffc1f8fe366bcbc087cd7ffcd96a (diff)
downloadnumpy-9742e30558a9a79cbfe875d2ad7e61b38b0f930d.tar.gz
Detect gfrotran/g77 mismatch.
Diffstat (limited to 'numpy/linalg')
-rw-r--r--numpy/linalg/tests/test_build.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py
index ccba19bb1..84784b171 100644
--- a/numpy/linalg/tests/test_build.py
+++ b/numpy/linalg/tests/test_build.py
@@ -3,7 +3,8 @@ import sys
import re
import numpy as np
-from numpy.testing import TestCase
+from numpy.linalg import lapack_lite
+from numpy.testing import TestCase, dec
class FindDependenciesLdd:
def __init__(self):
@@ -33,3 +34,14 @@ class FindDependenciesLdd:
founds.append(k)
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")