summaryrefslogtreecommitdiff
path: root/numpy/doc
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-06-21 15:50:17 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-06-21 15:50:17 +0000
commitaf7f89ea35ae9dbf38682d3215a20cc13ab0890c (patch)
tree9be759f8f0d1107b8fddc74fc3fcbb03bcc8f1de /numpy/doc
parent03fbbffca884c70d56e08d5551b001dd6b9565c6 (diff)
downloadnumpy-af7f89ea35ae9dbf38682d3215a20cc13ab0890c.tar.gz
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.
Diffstat (limited to 'numpy/doc')
-rw-r--r--numpy/doc/DISTUTILS.txt4
1 files changed, 2 insertions, 2 deletions
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.