diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-04 10:33:07 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2018-04-06 18:20:56 -0600 |
commit | 7bf0564f87511d9e7b6287b3eec0857d0d7742df (patch) | |
tree | 0f61ebbad4144e802a8966015741b2d309be696e /numpy/linalg | |
parent | 036151143bff1eebeded5582534e676a192352cd (diff) | |
download | numpy-7bf0564f87511d9e7b6287b3eec0857d0d7742df.tar.gz |
MAINT: Remove all uses of run_module_suite.
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
Diffstat (limited to 'numpy/linalg')
-rw-r--r-- | numpy/linalg/tests/test_build.py | 6 | ||||
-rw-r--r-- | numpy/linalg/tests/test_deprecations.py | 6 | ||||
-rw-r--r-- | numpy/linalg/tests/test_linalg.py | 7 | ||||
-rw-r--r-- | numpy/linalg/tests/test_regression.py | 6 |
4 files changed, 4 insertions, 21 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py index 2e9eb7389..921390da3 100644 --- a/numpy/linalg/tests/test_build.py +++ b/numpy/linalg/tests/test_build.py @@ -6,7 +6,7 @@ import re import pytest from numpy.linalg import lapack_lite -from numpy.testing import run_module_suite, assert_ +from numpy.testing import assert_ class FindDependenciesLdd(object): @@ -53,7 +53,3 @@ class TestF77Mismatch(object): """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.""") - - -if __name__ == '__main__': - run_module_suite() diff --git a/numpy/linalg/tests/test_deprecations.py b/numpy/linalg/tests/test_deprecations.py index 9b6fe343f..e12755e0d 100644 --- a/numpy/linalg/tests/test_deprecations.py +++ b/numpy/linalg/tests/test_deprecations.py @@ -4,7 +4,7 @@ from __future__ import division, absolute_import, print_function import numpy as np -from numpy.testing import assert_warns, run_module_suite +from numpy.testing import assert_warns def test_qr_mode_full_future_warning(): @@ -20,7 +20,3 @@ def test_qr_mode_full_future_warning(): assert_warns(DeprecationWarning, np.linalg.qr, a, mode='f') assert_warns(DeprecationWarning, np.linalg.qr, a, mode='economic') assert_warns(DeprecationWarning, np.linalg.qr, a, mode='e') - - -if __name__ == "__main__": - run_module_suite() diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index c0147ab64..4a87330c7 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -18,8 +18,7 @@ from numpy.linalg import matrix_power, norm, matrix_rank, multi_dot, LinAlgError from numpy.linalg.linalg import _multi_dot_matrix_chain_order from numpy.testing import ( assert_, assert_equal, assert_raises, assert_array_equal, - assert_almost_equal, assert_allclose, run_module_suite, - SkipTest, suppress_warnings + assert_almost_equal, assert_allclose, SkipTest, suppress_warnings ) @@ -1784,7 +1783,3 @@ class TestMultiDot(object): def test_too_few_input_arrays(self): assert_raises(ValueError, multi_dot, []) assert_raises(ValueError, multi_dot, [np.random.random((3, 3))]) - - -if __name__ == "__main__": - run_module_suite() diff --git a/numpy/linalg/tests/test_regression.py b/numpy/linalg/tests/test_regression.py index c11689b3b..bd3a45872 100644 --- a/numpy/linalg/tests/test_regression.py +++ b/numpy/linalg/tests/test_regression.py @@ -7,7 +7,7 @@ import warnings import numpy as np from numpy import linalg, arange, float64, array, dot, transpose from numpy.testing import ( - run_module_suite, assert_, assert_raises, assert_equal, assert_array_equal, + assert_, assert_raises, assert_equal, assert_array_equal, assert_array_almost_equal, assert_array_less ) @@ -148,7 +148,3 @@ class TestRegression(object): u_lstsq, res, rank, sv = linalg.lstsq(G, b, rcond=None) # check results just in case assert_array_almost_equal(u_lstsq, u) - - -if __name__ == '__main__': - run_module_suite() |