[py-svn] r13109 - py/dist/py/execnet
ggheo at codespeak.net
ggheo at codespeak.net
Mon Jun 6 16:13:10 CEST 2005
Author: ggheo
Date: Mon Jun 6 16:13:10 2005
New Revision: 13109
Modified:
py/dist/py/execnet/register.py
Log:
Added sys.exc_info() to trace if IOError during closing of the channel.
Fixed order of arguments in self.trace("child process %s already dead? error:%s").
Modified: py/dist/py/execnet/register.py
==============================================================================
--- py/dist/py/execnet/register.py (original)
+++ py/dist/py/execnet/register.py Mon Jun 6 16:13:10 2005
@@ -62,9 +62,10 @@
self._pidchannel.waitclose(timeout=0.5)
pid = self._pidchannel.receive()
except IOError:
- self.trace("could not receive child PID")
- pid = None
- super(PopenCmdGateway, self).exit()
+ self.trace("IOError: could not receive child PID")
+ self.trace(sys.exc_info())
+ pid = None
+ super(PopenCmdGateway, self).exit()
if pid is not None:
self.trace("waiting for pid %s" % pid)
try:
@@ -75,7 +76,7 @@
raise
except OSError, e:
self.trace("child process %s already dead? error:%s" %
- (str(e), pid))
+ (pid, str(e)))
class PopenGateway(PopenCmdGateway):
# use sysfind/sysexec/subprocess instead of os.popen?
More information about the pytest-commit
mailing list