[Zope3-checkins] SVN: zope.testing/trunk/ Produce a clear error message when subprocess doesn't follow the

Marius Gedminas marius at pov.lt
Mon Aug 3 13:39:46 EDT 2009


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



More information about the Zope3-Checkins mailing list