mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
4ae52694c9
commit
068d5724d8
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue