summaryrefslogtreecommitdiff
path: root/numpy/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-04-04 10:33:07 -0600
committerCharles Harris <charlesr.harris@gmail.com>2018-04-06 18:20:56 -0600
commit7bf0564f87511d9e7b6287b3eec0857d0d7742df (patch)
tree0f61ebbad4144e802a8966015741b2d309be696e /numpy/tests
parent036151143bff1eebeded5582534e676a192352cd (diff)
downloadnumpy-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/tests')
-rw-r--r--numpy/tests/test_ctypeslib.py6
-rw-r--r--numpy/tests/test_matlib.py6
-rw-r--r--numpy/tests/test_numpy_version.py6
-rw-r--r--numpy/tests/test_reloading.py6
-rw-r--r--numpy/tests/test_warnings.py5
5 files changed, 4 insertions, 25 deletions
diff --git a/numpy/tests/test_ctypeslib.py b/numpy/tests/test_ctypeslib.py
index a208c9073..0f0d6dbc4 100644
--- a/numpy/tests/test_ctypeslib.py
+++ b/numpy/tests/test_ctypeslib.py
@@ -6,7 +6,7 @@ import pytest
import numpy as np
from numpy.ctypeslib import ndpointer, load_library
from numpy.distutils.misc_util import get_shared_lib_extension
-from numpy.testing import run_module_suite, assert_, assert_raises
+from numpy.testing import assert_, assert_raises
try:
cdll = None
@@ -113,7 +113,3 @@ class TestNdpointer(object):
a1 = ndpointer(dtype=np.float64)
a2 = ndpointer(dtype=np.float64)
assert_(a1 == a2)
-
-
-if __name__ == "__main__":
- run_module_suite()
diff --git a/numpy/tests/test_matlib.py b/numpy/tests/test_matlib.py
index d16975934..12116b883 100644
--- a/numpy/tests/test_matlib.py
+++ b/numpy/tests/test_matlib.py
@@ -2,7 +2,7 @@ from __future__ import division, absolute_import, print_function
import numpy as np
import numpy.matlib
-from numpy.testing import assert_array_equal, assert_, run_module_suite
+from numpy.testing import assert_array_equal, assert_
def test_empty():
x = numpy.matlib.empty((2,))
@@ -58,7 +58,3 @@ def test_repmat():
y = np.array([[0, 1, 2, 3, 0, 1, 2, 3],
[0, 1, 2, 3, 0, 1, 2, 3]])
assert_array_equal(x, y)
-
-
-if __name__ == "__main__":
- run_module_suite()
diff --git a/numpy/tests/test_numpy_version.py b/numpy/tests/test_numpy_version.py
index b61d0d5f1..7fac8fd22 100644
--- a/numpy/tests/test_numpy_version.py
+++ b/numpy/tests/test_numpy_version.py
@@ -3,7 +3,7 @@ from __future__ import division, absolute_import, print_function
import re
import numpy as np
-from numpy.testing import assert_, run_module_suite
+from numpy.testing import assert_
def test_valid_numpy_version():
@@ -17,7 +17,3 @@ def test_valid_numpy_version():
res = re.match(version_pattern + dev_suffix, np.__version__)
assert_(res is not None, np.__version__)
-
-
-if __name__ == "__main__":
- run_module_suite()
diff --git a/numpy/tests/test_reloading.py b/numpy/tests/test_reloading.py
index 4481d76ef..cd42252e3 100644
--- a/numpy/tests/test_reloading.py
+++ b/numpy/tests/test_reloading.py
@@ -3,7 +3,7 @@ from __future__ import division, absolute_import, print_function
import sys
import pickle
-from numpy.testing import assert_raises, assert_, assert_equal, run_module_suite
+from numpy.testing import assert_raises, assert_, assert_equal
if sys.version_info[:2] >= (3, 4):
from importlib import reload
@@ -34,7 +34,3 @@ def test_novalue():
import numpy as np
assert_equal(repr(np._NoValue), '<no value>')
assert_(pickle.loads(pickle.dumps(np._NoValue)) is np._NoValue)
-
-
-if __name__ == "__main__":
- run_module_suite()
diff --git a/numpy/tests/test_warnings.py b/numpy/tests/test_warnings.py
index abebdafc8..aa6f69f7e 100644
--- a/numpy/tests/test_warnings.py
+++ b/numpy/tests/test_warnings.py
@@ -12,7 +12,6 @@ if sys.version_info >= (3, 4):
import ast
import tokenize
import numpy
- from numpy.testing import run_module_suite
class ParseCall(ast.NodeVisitor):
def __init__(self):
@@ -77,7 +76,3 @@ if sys.version_info >= (3, 4):
with tokenize.open(str(path)) as file:
tree = ast.parse(file.read())
FindFuncs(path).visit(tree)
-
-
- if __name__ == "__main__":
- run_module_suite()