cpython (merge 3.2 -> default): Issue #12981: test_multiprocessing: catch ImportError when importing

http://hg.python.org/cpython/rev/21b837aa07b9 changeset: 72443:21b837aa07b9 parent: 72440:210b2773c87a parent: 72442:6e04d406bb86 user: Charles-François Natali <neologix@free.fr> date: Wed Sep 21 18:49:18 2011 +0200 summary: Issue #12981: test_multiprocessing: catch ImportError when importing multiprocessing.reduction, which may not be available (e.g. if the OS doesn't support FD passing over Unix domain sockets). files: Lib/test/test_multiprocessing.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1693,6 +1693,7 @@ def _send_data_without_fd(self, conn): os.write(conn.fileno(), b"\0") + @unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction") @unittest.skipIf(sys.platform == "win32", "doesn't make sense on Windows") def test_missing_fd_transfer(self): # Check that exception is raised when received data is not -- Repository URL: http://hg.python.org/cpython
participants (1)
-
charles-francois.natali