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 <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <[email protected]>
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())
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.