[py-svn] r38095 - py/trunk/py/test/rsession

fijal at codespeak.net fijal at codespeak.net
Wed Feb 7 19:37:07 CET 2007


Author: fijal
Date: Wed Feb  7 19:36:53 2007
New Revision: 38095

Modified:
   py/trunk/py/test/rsession/master.py
Log:
getremoteerror does not raise!


Modified: py/trunk/py/test/rsession/master.py
==============================================================================
--- py/trunk/py/test/rsession/master.py	(original)
+++ py/trunk/py/test/rsession/master.py	Wed Feb  7 19:36:53 2007
@@ -33,17 +33,11 @@
                 # send start report
                 self.reporter(repevent.SendItem(self.channel, item))
         except IOError:
-            
-            try:
-                channel._getremoterror()
-            except:
-                # if this were not remote, we've got no clue
-                excinfo = py.code.ExceptionInfo()
-                for i in excinfo.traceback:
-                    print str(i)[2:-1]
-                print excinfo
-            else:
-                raise
+            print "Sending error, channel IOError"
+            print channel._getremoterror()
+            # XXX: this should go as soon as we'll have proper detection
+            #      of hanging nodes and such
+            raise
 
 def itemgen(colitems, reporter, keyword, reporterror):
     def rep(x):


More information about the py-svn mailing list