Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fba2b6b

Browse files
author
Charles-François Natali
committed
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).
2 parents 9c0cccf + e51c8da commit fba2b6b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_multiprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,7 @@ def test_large_fd_transfer(self):
16931693
def _send_data_without_fd(self, conn):
16941694
os.write(conn.fileno(), b"\0")
16951695

1696+
@unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction")
16961697
@unittest.skipIf(sys.platform == "win32", "doesn't make sense on Windows")
16971698
def test_missing_fd_transfer(self):
16981699
# Check that exception is raised when received data is not

0 commit comments

Comments
 (0)