diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-06-21 15:50:17 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-06-21 15:50:17 +0000 |
commit | af7f89ea35ae9dbf38682d3215a20cc13ab0890c (patch) | |
tree | 9be759f8f0d1107b8fddc74fc3fcbb03bcc8f1de /numpy/fft | |
parent | 03fbbffca884c70d56e08d5551b001dd6b9565c6 (diff) | |
download | numpy-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/fft')
-rw-r--r-- | numpy/fft/__init__.py | 2 | ||||
-rw-r--r-- | numpy/fft/tests/test_fftpack.py | 2 | ||||
-rw-r--r-- | numpy/fft/tests/test_helper.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/numpy/fft/__init__.py b/numpy/fft/__init__.py index d7f6c3d87..324e39f4d 100644 --- a/numpy/fft/__init__.py +++ b/numpy/fft/__init__.py @@ -4,6 +4,6 @@ from info import __doc__ from fftpack import * from helper import * -from numpy.testing.pkgtester import Tester +from numpy.testing import Tester test = Tester().test bench = Tester().bench diff --git a/numpy/fft/tests/test_fftpack.py b/numpy/fft/tests/test_fftpack.py index 149611e6a..1e896b589 100644 --- a/numpy/fft/tests/test_fftpack.py +++ b/numpy/fft/tests/test_fftpack.py @@ -23,4 +23,4 @@ class TestFFT1D(TestCase): if __name__ == "__main__": - nose.run(argv=['', __file__]) + run_module_suite() diff --git a/numpy/fft/tests/test_helper.py b/numpy/fft/tests/test_helper.py index 42678fb79..7239941e2 100644 --- a/numpy/fft/tests/test_helper.py +++ b/numpy/fft/tests/test_helper.py @@ -42,4 +42,4 @@ class TestFFTFreq(TestCase): if __name__ == "__main__": - nose.run(argv=['', __file__]) + run_module_suite() |