From af7f89ea35ae9dbf38682d3215a20cc13ab0890c Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Sat, 21 Jun 2008 15:50:17 +0000 Subject: Restore old test framework classes. Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc. --- numpy/doc/DISTUTILS.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/doc') diff --git a/numpy/doc/DISTUTILS.txt b/numpy/doc/DISTUTILS.txt index 9a7672d0e..b1a50f376 100644 --- a/numpy/doc/DISTUTILS.txt +++ b/numpy/doc/DISTUTILS.txt @@ -471,7 +471,7 @@ of these classes whose names contain ``test`` or start with ``bench`` are automatically picked up by the test machinery. A minimal example of a ``test_yyy.py`` file that implements tests for -a Scipy package module ``numpy.xxx.yyy`` containing a function +a NumPy package module ``numpy.xxx.yyy`` containing a function ``zzz()``, is shown below:: import sys @@ -493,7 +493,7 @@ a Scipy package module ``numpy.xxx.yyy`` containing a function #... if __name__ == "__main__": - nose.run(argv=['', __file__]) + run_module_tests(file) Note that all classes that are inherited from ``TestCase`` class, are automatically picked up by the test runner. -- cgit v1.2.1