summaryrefslogtreecommitdiff
path: root/scipy/test/testing.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2005-10-13 10:38:32 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2005-10-13 10:38:32 +0000
commit7768c2e4e25134c29bc145ca06f42fdbddead216 (patch)
tree478ab78d1de52befb03eb64aedda281e00a31a42 /scipy/test/testing.py
parentd47b79d847d963251bcaf8612a9f1f1438632104 (diff)
downloadnumpy-7768c2e4e25134c29bc145ca06f42fdbddead216.tar.gz
Shut up scipy.test(..) on missing tests. Use scipy.test(verbosity=2) to get old behaviour.
Diffstat (limited to 'scipy/test/testing.py')
-rw-r--r--scipy/test/testing.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/scipy/test/testing.py b/scipy/test/testing.py
index 476312095..4a68f5168 100644
--- a/scipy/test/testing.py
+++ b/scipy/test/testing.py
@@ -264,7 +264,7 @@ class ScipyTest:
names.append(n)
return names
- def _get_module_tests(self,module,level):
+ def _get_module_tests(self,module,level,verbosity):
mstr = self._module_str
d,f = os.path.split(module.__file__)
@@ -292,9 +292,10 @@ class ScipyTest:
if short_module_name[-8:]=='_version' \
and short_module_name[:-8]==module.__name__.split('.')[-2]:
return []
- print test_file
- print ' !! No test file %r found for %s' \
- % (os.path.basename(test_file), mstr(module))
+ if verbosity>1:
+ print test_file
+ print ' !! No test file %r found for %s' \
+ % (os.path.basename(test_file), mstr(module))
return []
try:
@@ -360,7 +361,7 @@ class ScipyTest:
or module is None \
or os.path.basename(os.path.dirname(module.__file__))=='tests':
continue
- suites.extend(self._get_module_tests(module, level))
+ suites.extend(self._get_module_tests(module, level, verbosity))
suites.extend(self._get_suite_list(sys.modules[package_name], level))