diff options
-rw-r--r-- | numpy/linalg/tests/test_build.py | 14 |
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") |