[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner/runner.py nerr and nfail should be defined in case no value can be computed in following

Godefroid Chapelle gotcha at bubblenet.be
Fri Jul 31 18:35:34 EDT 2009


Log message for revision 102409:
  nerr and nfail should be defined in case no value can be computed in following
  loop
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner/runner.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner/runner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/runner.py	2009-07-31 12:47:51 UTC (rev 102408)
+++ zope.testing/trunk/src/zope/testing/testrunner/runner.py	2009-07-31 22:35:34 UTC (rev 102409)
@@ -407,6 +407,7 @@
         subout, suberr = child.communicate()
 
         erriter = iter(suberr.splitlines())
+        nfail = nerr = 0
         for line in erriter:
             try:
                 result.num_ran, nfail, nerr = map(int, line.strip().split())



More information about the Zope3-Checkins mailing list