diff options
author | H. Vetinari <h.vetinari@gmx.com> | 2021-11-25 07:47:24 +1100 |
---|---|---|
committer | H. Vetinari <h.vetinari@gmx.com> | 2021-11-25 08:12:55 +1100 |
commit | 416d3b3069b6a829673a68464b4eab768c1b90d2 (patch) | |
tree | 00ed60c6bbf7600e5eb4ad16b7f3d28fde66d745 /numpy | |
parent | e94bbb87ba10ec2585f87af8e9a80afee2f89e04 (diff) | |
download | numpy-416d3b3069b6a829673a68464b4eab768c1b90d2.tar.gz |
TST: remove obsolete TestF77Mismatch
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/linalg/tests/test_build.py | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py deleted file mode 100644 index 868341ff2..000000000 --- a/numpy/linalg/tests/test_build.py +++ /dev/null @@ -1,53 +0,0 @@ -from subprocess import PIPE, Popen -import sys -import re -import pytest - -from numpy.linalg import lapack_lite -from numpy.testing import assert_ - - -class FindDependenciesLdd: - - def __init__(self): - self.cmd = ['ldd'] - - try: - p = Popen(self.cmd, stdout=PIPE, stderr=PIPE) - stdout, stderr = p.communicate() - except OSError as e: - raise RuntimeError(f'command {self.cmd} cannot be run') from e - - def get_dependencies(self, lfile): - p = Popen(self.cmd + [lfile], stdout=PIPE, stderr=PIPE) - stdout, stderr = p.communicate() - if not (p.returncode == 0): - raise RuntimeError(f'failed dependencies check for {lfile}') - - return stdout - - def grep_dependencies(self, lfile, deps): - stdout = self.get_dependencies(lfile) - - rdeps = dict([(dep, re.compile(dep)) for dep in deps]) - founds = [] - for l in stdout.splitlines(): - for k, v in rdeps.items(): - if v.search(l): - founds.append(k) - - return founds - - -class TestF77Mismatch: - - @pytest.mark.skipif(not(sys.platform[:5] == 'linux'), - reason="no fortran compiler on non-Linux platform") - def test_lapack(self): - f = FindDependenciesLdd() - deps = f.grep_dependencies(lapack_lite.__file__, - [b'libg2c', b'libgfortran']) - assert_(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.""") |