diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-07-17 18:10:09 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-07-24 13:00:29 -0600 |
commit | fb935c60ff529ab9d08317293336a6883a02370c (patch) | |
tree | 794046a817674ad4b49312f83ac44d727ffb6a5f /numpy/linalg/tests/test_build.py | |
parent | 8eee1b06b330f6ff23fd3604444ba20a8d2d6416 (diff) | |
download | numpy-fb935c60ff529ab9d08317293336a6883a02370c.tar.gz |
TST: Remove unittest dependencies in numpy/linalg/tests.
Diffstat (limited to 'numpy/linalg/tests/test_build.py')
-rw-r--r-- | numpy/linalg/tests/test_build.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py index a91f97670..b46a72c02 100644 --- a/numpy/linalg/tests/test_build.py +++ b/numpy/linalg/tests/test_build.py @@ -5,7 +5,7 @@ import sys import re from numpy.linalg import lapack_lite -from numpy.testing import TestCase, dec, run_module_suite +from numpy.testing import run_module_suite, assert_, dec class FindDependenciesLdd(object): @@ -40,7 +40,7 @@ class FindDependenciesLdd(object): return founds -class TestF77Mismatch(TestCase): +class TestF77Mismatch(object): @dec.skipif(not(sys.platform[:5] == 'linux'), "Skipping fortran compiler mismatch on non Linux platform") @@ -48,7 +48,7 @@ class TestF77Mismatch(TestCase): f = FindDependenciesLdd() deps = f.grep_dependencies(lapack_lite.__file__, [b'libg2c', b'libgfortran']) - self.assertFalse(len(deps) > 1, + 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.""") |