diff options
author | Eric Jones <eric@enthought.com> | 2002-02-19 10:35:37 +0000 |
---|---|---|
committer | Eric Jones <eric@enthought.com> | 2002-02-19 10:35:37 +0000 |
commit | 5ba533b4b7b4562c36df4d0a698efff872a98086 (patch) | |
tree | 41e8d30399c1f16db04af95e353afd16e7ad3596 /weave/standard_array_spec.py | |
parent | 04891cf9a4a66f2c64391eda97ecf38fff9d35c9 (diff) | |
download | numpy-5ba533b4b7b4562c36df4d0a698efff872a98086.tar.gz |
major overhaul to testing framework. module_xxx.test() now takes a 'level' argument to specify how thorough the testing should be. Level 1 is the least thorough, and only runs rapid tests (as specified by the test writer) on the module/package. level=10 is the most thorough testing. Any value between 1 and 10 can be used. I'm currently using 1, 5, and 10 for most of my tests, but others may wish to use more fine grained settings.
Diffstat (limited to 'weave/standard_array_spec.py')
-rw-r--r-- | weave/standard_array_spec.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weave/standard_array_spec.py b/weave/standard_array_spec.py index 745653505..0f430f22a 100644 --- a/weave/standard_array_spec.py +++ b/weave/standard_array_spec.py @@ -86,10 +86,10 @@ class array_converter(base_converter): cmp(self.dims, other.dims) or \ cmp(self.__class__, other.__class__) -def test(): +def test(level=10): from scipy_test import module_test - module_test(__name__,__file__) + module_test(__name__,__file__,level=level) -def test_suite(): +def test_suite(level=1): from scipy_test import module_test_suite - return module_test_suite(__name__,__file__) + return module_test_suite(__name__,__file__,level=level) |