[Python-checkins] r46344 - sandbox/trunk/rjsh-pybench/pybench.py

steve.holden python-checkins at python.org
Fri May 26 17:28:48 CEST 2006


Author: steve.holden
Date: Fri May 26 17:28:48 2006
New Revision: 46344

Modified:
   sandbox/trunk/rjsh-pybench/pybench.py
Log:
Tweak verbose output.


Modified: sandbox/trunk/rjsh-pybench/pybench.py
==============================================================================
--- sandbox/trunk/rjsh-pybench/pybench.py	(original)
+++ sandbox/trunk/rjsh-pybench/pybench.py	Fri May 26 17:28:48 2006
@@ -232,7 +232,8 @@
         else:
             limitnames = None
         tests = self.tests
-        print 'Searching for tests ...',
+        if verbose:
+            print 'Searching for tests ...',
         setupmod.__dict__.values()
         for c in setupmod.__dict__.values():
             if not hasattr(c,'is_a_test'):
@@ -248,9 +249,8 @@
         if verbose:
             print
             for t in l:
-                print '  ',t
-        else:
-            print len(l), "found"
+                print '  ', t
+            print len(l), "tests found"
         print
 
     def run(self, verbose):


More information about the Python-checkins mailing list