From 7bf0564f87511d9e7b6287b3eec0857d0d7742df Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 4 Apr 2018 10:33:07 -0600 Subject: 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. --- numpy/random/tests/test_random.py | 5 +---- numpy/random/tests/test_regression.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'numpy/random/tests') diff --git a/numpy/random/tests/test_random.py b/numpy/random/tests/test_random.py index 4546a0184..61c6e912d 100644 --- a/numpy/random/tests/test_random.py +++ b/numpy/random/tests/test_random.py @@ -3,7 +3,7 @@ import warnings import numpy as np from numpy.testing import ( - run_module_suite, assert_, assert_raises, assert_equal, assert_warns, + assert_, assert_raises, assert_equal, assert_warns, assert_no_warnings, assert_array_equal, assert_array_almost_equal, suppress_warnings ) @@ -1634,6 +1634,3 @@ class TestSingleEltArrayInput(object): out = func(self.argOne, self.argTwo[0], self.argThree) assert_equal(out.shape, self.tgtShape) - -if __name__ == "__main__": - run_module_suite() diff --git a/numpy/random/tests/test_regression.py b/numpy/random/tests/test_regression.py index 572f4c087..3b4b4ed40 100644 --- a/numpy/random/tests/test_regression.py +++ b/numpy/random/tests/test_regression.py @@ -2,7 +2,7 @@ from __future__ import division, absolute_import, print_function import sys from numpy.testing import ( - run_module_suite, assert_, assert_array_equal, assert_raises, + assert_, assert_array_equal, assert_raises, ) from numpy import random from numpy.compat import long @@ -133,6 +133,3 @@ class TestRegression(object): # Force Garbage Collection - should not segfault. import gc gc.collect() - -if __name__ == "__main__": - run_module_suite() -- cgit v1.2.1