Commit 01e652c6 authored by Fred Drake's avatar Fred Drake

Try to be a little more careful, but these tests should be seriously

reconsidered.  That's for another day, though.
parent 4bd77e47
......@@ -93,7 +93,11 @@ class StartTests(unittest.TestCase):
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 @@ class StartTests(unittest.TestCase):
_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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment