[Python-checkins] cpython (merge 3.2 -> default): Issue #12981: test_multiprocessing: catch ImportError when importing
charles-francois.natali
python-checkins at python.org
Wed Sep 21 18:47:46 CEST 2011
http://hg.python.org/cpython/rev/21b837aa07b9
changeset: 72443:21b837aa07b9
parent: 72440:210b2773c87a
parent: 72442:6e04d406bb86
user: Charles-François Natali <neologix at 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
More information about the Python-checkins
mailing list