[Zope3-checkins] 
	SVN: zope.testing/trunk/src/zope/testing/testrunner.py
	Added exception handling for odd error in reading subprocess output
    Jim Fulton 
    jim at zope.com
       
    Sun May  6 09:56:45 EDT 2007
    
    
  
Log message for revision 75563:
  Added exception handling for odd error in reading subprocess output
  that occurs when running the full Zope 3 tests.
  
Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner.py
-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2007-05-06 13:56:37 UTC (rev 75562)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2007-05-06 13:56:42 UTC (rev 75563)
@@ -649,8 +649,11 @@
                 ])
 
         subin, subout, suberr = os.popen3(args)
-        for l in subout:
-            sys.stdout.write(l)
+        try:
+            for l in subout:
+                sys.stdout.write(l)
+        except IOError:
+            print "Error reading subprocess output for", layer_name
 
         line = suberr.readline()
         try:
    
    
More information about the Zope3-Checkins
mailing list