Attempt to fix build failure on OS X and Debian alpha; the symptom is

consistent with os.wait() returning immediately because some other
subprocess had previously exited; the test suite then immediately
tries to lock the mailbox and gets an error saying it's already
locked.

To fix this, do a waitpid() so the test suite only continues once
the intended child process has exited.
This commit is contained in:
Andrew M. Kuchling 2006-06-26 17:00:35 +00:00
parent ec3c368195
commit 15486f78f0
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ class _TestMboxMMDF(TestMailbox):
self._box.lock)
# Wait for child to exit. Locking should now succeed.
pid, status = os.wait()
exited_pid, status = os.waitpid(pid, 0)
self._box.lock()
self._box.unlock()