SVN: zope.testing/trunk/ Produce a clear error message when subprocess doesn't follow the

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <[email protected]>
Log message for revision 102460:
  Produce a clear error message when subprocess doesn't follow the
  zope.testing.testrunner protocol (LP#407916).
  
  

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

-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt	2009-08-03 17:33:30 UTC (rev 102459)
+++ zope.testing/trunk/CHANGES.txt	2009-08-03 17:39:46 UTC (rev 102460)
@@ -4,7 +4,8 @@
 3.8.1 (unreleased)
 ==================
 
-- Nothing changed yet.
+- Produce a clear error message when subprocess doesn't follow the
+  zope.testing.testrunner protocol (LP#407916).
 
 
 3.8.0 (2009-07-24)
@@ -13,6 +14,7 @@
 - Testrunner automatically picks up descendants of unittest.TestCase in test
   modules, so you don't have to provide a test_suite() anymore.
 
+
 3.7.7 (2009-07-15)
 ==================
 

Modified: zope.testing/trunk/src/zope/testing/testrunner/runner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/runner.py	2009-08-03 17:33:30 UTC (rev 102459)
+++ zope.testing/trunk/src/zope/testing/testrunner/runner.py	2009-08-03 17:39:46 UTC (rev 102460)
@@ -417,6 +417,10 @@
                 continue
             else:
                 break
+        else:
+            output = options.output
+            output.error_with_banner("Could not communicate with subprocess:\n"
+                                     "\n" + suberr)
 
         while nfail > 0:
             nfail -= 1
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.