diff options
author | Charles-François Natali <neologix@free.fr> | 2011-09-21 16:49:18 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-09-21 16:49:18 (GMT) |
commit | fba2b6b454709c84a7d91a7ef55315d623583bb8 (patch) | |
tree | b061b7f2b3544bcebf642c34bd236f49e2a423ec /Lib | |
parent | 9c0cccf363c49a02d2f1cd9fc09b351aec3518af (diff) | |
parent | e51c8dad1a086d2d7cd2b343c625805fa7a856bd (diff) | |
download | cpython-fba2b6b454709c84a7d91a7ef55315d623583bb8.zip cpython-fba2b6b454709c84a7d91a7ef55315d623583bb8.tar.gz cpython-fba2b6b454709c84a7d91a7ef55315d623583bb8.tar.bz2 |
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).
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 index b211861..48a4ff4 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1693,6 +1693,7 @@ class _TestConnection(BaseTestCase): 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 |