[Zodb-checkins] CVS: Zope/lib/python/ZEO/tests - testStart.py:1.20
Fred L. Drake, Jr.
fred@zope.com
Mon, 10 Feb 2003 13:10:50 -0500
Update of /cvs-repository/Zope/lib/python/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv4313
Modified Files:
testStart.py
Log Message:
Try to be a little more careful, but these tests should be seriously
reconsidered. That's for another day, though.
=== Zope/lib/python/ZEO/tests/testStart.py 1.19 => 1.20 ===
--- Zope/lib/python/ZEO/tests/testStart.py:1.19 Mon Feb 10 12:47:22 2003
+++ Zope/lib/python/ZEO/tests/testStart.py Mon Feb 10 13:10:50 2003
@@ -93,7 +93,11 @@
try:
os.kill(pid, sig)
except os.error, err:
- print err
+ if err[0] == errno.ESRCH:
+ if self.pids.has_key(pid):
+ del self.pids[pid]
+ continue
+ raise
def wait(self, flag=0, pids=None):
if pids is None:
@@ -104,6 +108,8 @@
_pid, status = os.waitpid(pid, flag)
except os.error, err:
if err[0] == errno.ECHILD:
+ if self.pids.has_key(pid):
+ del self.pids[pid]
continue
print err
else: