cpython: c9facd251725 (original) (raw)

Mercurial > cpython

changeset 74093:c9facd251725 2.7

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:47:23 +0100
parents 355466216029
children 5e939912f9f8
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 @@ -15,10 +15,6 @@ try: import fcntl except ImportError: pass -try:

-except ImportError:

Silence Py3k warning

rfc822 = test_support.import_module('rfc822', deprecated=True) @@ -870,12 +866,13 @@ class _TestMboxMMDF(TestMailbox): self._box = self._factory(self._path) @unittest.skipUnless(hasattr(os, 'fork'), "Test needs fork().")

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