Kaydet (Commit) fba2b6b4 authored tarafından Charles-François Natali's avatar Charles-François Natali

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).
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment