mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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).
This commit is contained in:
commit
fba2b6b454
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue