summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-04-22 21:18:20 +0000
committercookedm <cookedm@localhost>2007-04-22 21:18:20 +0000
commit6a3e80e50be8e325dd01e63f3874b29764fe37d4 (patch)
treefffe91305c416eeb1cbcbe8d9617dfd73e559f6c /numpy/__init__.py
parent03b278bc04b508e8c48bc2df80113d23b2a039c4 (diff)
downloadnumpy-6a3e80e50be8e325dd01e63f3874b29764fe37d4.tar.gz
NumpyTest.test() takes an extra argument, all, which, if true, makes
it act like NumpyTest.testall(). This comes from some refactoring to remove duplicate code in .test and .testall().
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r--numpy/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index c7a7b80d4..473b8e5f0 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -84,11 +84,8 @@ lib --> *
testing --> NumpyTest
"""
- def test(level=1, verbosity=1):
- if level <= 10:
- return NumpyTest().test(level, verbosity)
- else:
- return NumpyTest().testall(level, verbosity)
+ def test(*args, **kw):
+ return NumpyTest().test(*args, **kw)
test.__doc__ = NumpyTest.test.__doc__
import add_newdocs