Calling _cleanup() does not guarantee that all processes have

terminated; this makes the final assert in the self-test code fail if
the parent runs faster than the children.  Fix this by calling wait()
on the remaining children instead.
This commit is contained in:
Guido van Rossum 1999-04-20 12:27:31 +00:00
parent 4ae52694c9
commit 068d5724d8

View file

@ -91,7 +91,8 @@ def _test():
w.close()
assert r.read() == teststr
assert e.read() == ""
_cleanup()
for inst in _active[:]:
inst.wait()
assert not _active
print "All OK"