Commit 7227a3f6 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 984d5e09
......@@ -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"
......
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