[py-svn] r10901 - py/dist/py/test/terminal

hpk at codespeak.net hpk at codespeak.net
Wed Apr 20 09:27:53 CEST 2005


Author: hpk
Date: Wed Apr 20 09:27:53 2005
New Revision: 10901

Modified:
   py/dist/py/test/terminal/terminal.py
Log:
print out module name before counting test items


Modified: py/dist/py/test/terminal/terminal.py
==============================================================================
--- py/dist/py/test/terminal/terminal.py	(original)
+++ py/dist/py/test/terminal/terminal.py	Wed Apr 20 09:27:53 2005
@@ -44,9 +44,10 @@
 
     def start_Module(self, colitem): 
         if self.config.option.verbose == 0: 
-            colitem.numitems = colitem.getnum(py.test.Item) 
             abbrev_fn = "/".join(colitem.listnames())
-            self.out.write('%s[%d] ' % (abbrev_fn, colitem.numitems))
+            self.out.write('%s' % (abbrev_fn, ))
+            colitem.numitems = colitem.getnum(py.test.Item) 
+            self.out.write('[%d] ' % (colitem.numitems,))
         else: 
             self.out.line()
             self.out.line("+ testmodule: %s" % colitem.fspath) 



More information about the pytest-commit mailing list