summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test__datasource.py3
-rw-r--r--numpy/lib/tests/test_arraysetops.py2
-rw-r--r--numpy/lib/tests/test_financial.py2
-rw-r--r--numpy/lib/tests/test_format.py2
-rw-r--r--numpy/lib/tests/test_function_base.py2
-rw-r--r--numpy/lib/tests/test_getlimits.py2
-rw-r--r--numpy/lib/tests/test_index_tricks.py3
-rw-r--r--numpy/lib/tests/test_io.py2
-rw-r--r--numpy/lib/tests/test_machar.py2
-rw-r--r--numpy/lib/tests/test_polynomial.py3
-rw-r--r--numpy/lib/tests/test_regression.py3
-rw-r--r--numpy/lib/tests/test_shape_base.py2
-rw-r--r--numpy/lib/tests/test_twodim_base.py3
-rw-r--r--numpy/lib/tests/test_type_check.py2
-rw-r--r--numpy/lib/tests/test_ufunclike.py8
15 files changed, 23 insertions, 18 deletions
diff --git a/numpy/lib/tests/test__datasource.py b/numpy/lib/tests/test__datasource.py
index 695da0470..abb58701d 100644
--- a/numpy/lib/tests/test__datasource.py
+++ b/numpy/lib/tests/test__datasource.py
@@ -304,4 +304,5 @@ class TestOpenFunc(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
+
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py
index ca505e9c5..0a15aa8b0 100644
--- a/numpy/lib/tests/test_arraysetops.py
+++ b/numpy/lib/tests/test_arraysetops.py
@@ -172,4 +172,4 @@ class TestAso(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_financial.py b/numpy/lib/tests/test_financial.py
index df5a0fbde..e0f20224d 100644
--- a/numpy/lib/tests/test_financial.py
+++ b/numpy/lib/tests/test_financial.py
@@ -37,4 +37,4 @@ def test():
doctest.testmod()
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index 4a473c55e..eecbf7356 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -509,4 +509,4 @@ def test_read_version_1_0_bad_magic():
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index c885f49af..77e572f7a 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -624,4 +624,4 @@ class TestPiecewise(TestCase):
assert y == 0
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_getlimits.py b/numpy/lib/tests/test_getlimits.py
index a6be8abd2..3fe939b32 100644
--- a/numpy/lib/tests/test_getlimits.py
+++ b/numpy/lib/tests/test_getlimits.py
@@ -52,4 +52,4 @@ class TestIinfo(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py
index 51d8e59db..2b92ce38e 100644
--- a/numpy/lib/tests/test_index_tricks.py
+++ b/numpy/lib/tests/test_index_tricks.py
@@ -57,4 +57,5 @@ class TestConcatenator(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
+
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 7cc595d4f..a8d2f78e4 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -198,4 +198,4 @@ class Testfromregex(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_machar.py b/numpy/lib/tests/test_machar.py
index 7485fc6c2..64abf7236 100644
--- a/numpy/lib/tests/test_machar.py
+++ b/numpy/lib/tests/test_machar.py
@@ -28,4 +28,4 @@ class TestMachAr(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_polynomial.py b/numpy/lib/tests/test_polynomial.py
index 3bd002cc0..406c151a1 100644
--- a/numpy/lib/tests/test_polynomial.py
+++ b/numpy/lib/tests/test_polynomial.py
@@ -112,4 +112,5 @@ class TestDocs(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
+
diff --git a/numpy/lib/tests/test_regression.py b/numpy/lib/tests/test_regression.py
index a5ba55928..5bc2d1d96 100644
--- a/numpy/lib/tests/test_regression.py
+++ b/numpy/lib/tests/test_regression.py
@@ -30,4 +30,5 @@ class TestRegression(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
+
diff --git a/numpy/lib/tests/test_shape_base.py b/numpy/lib/tests/test_shape_base.py
index 60265cd80..a578c27de 100644
--- a/numpy/lib/tests/test_shape_base.py
+++ b/numpy/lib/tests/test_shape_base.py
@@ -446,4 +446,4 @@ def compare_results(res,desired):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_twodim_base.py b/numpy/lib/tests/test_twodim_base.py
index 33a685bcf..fa50265e7 100644
--- a/numpy/lib/tests/test_twodim_base.py
+++ b/numpy/lib/tests/test_twodim_base.py
@@ -199,4 +199,5 @@ class TestTri(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
+
diff --git a/numpy/lib/tests/test_type_check.py b/numpy/lib/tests/test_type_check.py
index 80f112427..a89e78644 100644
--- a/numpy/lib/tests/test_type_check.py
+++ b/numpy/lib/tests/test_type_check.py
@@ -278,4 +278,4 @@ class TestArrayConversion(TestCase):
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
diff --git a/numpy/lib/tests/test_ufunclike.py b/numpy/lib/tests/test_ufunclike.py
index f734355bd..a7fbccea1 100644
--- a/numpy/lib/tests/test_ufunclike.py
+++ b/numpy/lib/tests/test_ufunclike.py
@@ -59,10 +59,10 @@ array([ 2.169925 , 1.20163386, 2.70043972])
from numpy.testing import *
-class TestDocs(TestCase):
- def test_doctests(self):
- return rundocs()
+def test():
+ return rundocs()
if __name__ == "__main__":
- nose.run(argv=['', __file__])
+ run_module_suite()
+