cpython: 9014e0cc5589 (original) (raw)

Mercurial > cpython

changeset 74095:9014e0cc5589

Followup to issue #11867: Use socketpair(), since FreeBSD < 8 doesn't really support multiprocessing.Event. [#11867]

Charles-François Natali neologix@free.fr
date Tue, 20 Dec 2011 11:49:25 +0100
parents 40f8e840bc24(current diff)9dee8a095faf(diff)
children a6e1d926cd98
files Lib/test/test_mailbox.py
diffstat 1 files changed, 8 insertions(+), 11 deletions(-)[+] [-] Lib/test/test_mailbox.py 19

line wrap: on

line diff

--- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -17,10 +17,6 @@ try: import fcntl except ImportError: pass -try:

-except ImportError:

class TestBase(unittest.TestCase): @@ -998,12 +994,13 @@ class _TestMboxMMDF(TestMailbox): self._box = self._factory(self._path) @unittest.skipUnless(hasattr(os, 'fork'), "Test needs fork().")

pid = os.fork() if pid == 0: @@ -1011,22 +1008,22 @@ class _TestMboxMMDF(TestMailbox): try: # lock the mailbox, and signal the parent it can proceed self._box.lock()

# wait until the parent is done, and unlock the mailbox

# In the parent, wait until the child signals it locked the mailbox.