cpython: 9dee8a095faf (original) (raw)

Mercurial > cpython

changeset 74094:9dee8a095faf 3.2

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:48:22 +0100
parents d85efd73b0e1
children 9014e0cc5589 b68373aeb335
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): @@ -999,12 +995,13 @@ class _TestMboxMMDF(TestMailbox): self._box = self._factory(self._path) @unittest.skipUnless(hasattr(os, 'fork'), "Test needs fork().")

pid = os.fork() if pid == 0: @@ -1012,22 +1009,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.