diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-06-17 00:23:20 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-06-17 00:23:20 +0000 |
commit | c331857d8663ecf54bbe88c834755da749e8ab52 (patch) | |
tree | f4cc69ec328a5ff4d3b108f3610acb119a196493 /numpy/__init__.py | |
parent | 22ba7886a84dc6a16ca75871f7cd2f10ef8de1f9 (diff) | |
download | numpy-c331857d8663ecf54bbe88c834755da749e8ab52.tar.gz |
Switched to use nose to run tests. Added test and bench functions to all modules.
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r-- | numpy/__init__.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index e4c58e3dd..87c350ad5 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -94,8 +94,11 @@ else: __all__ = ['add_newdocs'] pkgload.__doc__ = PackageLoader.__call__.__doc__ - import testing - from testing import ScipyTest, NumpyTest + + from testing.pkgtester import Tester + test = Tester().test + bench = Tester().bench + import core from core import * import lib @@ -113,15 +116,8 @@ else: from core import round, abs, max, min __all__.extend(['__version__', 'pkgload', 'PackageLoader', - 'ScipyTest', 'NumpyTest', 'show_config']) + 'show_config']) __all__.extend(core.__all__) __all__.extend(lib.__all__) __all__.extend(['linalg', 'fft', 'random', 'ctypeslib']) - def test(*args, **kw): - import os, sys - print 'Numpy is installed in %s' % (os.path.split(__file__)[0],) - print 'Numpy version %s' % (__version__,) - print 'Python version %s' % (sys.version.replace('\n', '',),) - return NumpyTest().test(*args, **kw) - test.__doc__ = NumpyTest.test.__doc__ |