Skip to content

Commit

Permalink
XFAIL test_child_raises_parent_exits_cleanly with multiprocessing (#1339
Browse files Browse the repository at this point in the history
)

* XFAIL test_child_raises_parent_exits_cleanly with multiprocessing

* PEP8
  • Loading branch information
ogrisel committed Sep 15, 2022
1 parent ac4ebd5 commit 067ed4f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions joblib/test/test_memmapping.py
Expand Up @@ -762,7 +762,18 @@ def test_memmapping_pool_for_large_arrays(factory, tmpdir):

@with_numpy
@with_multiprocessing
@parametrize("backend", ["multiprocessing", "loky"])
@parametrize(
"backend",
[
pytest.param(
"multiprocessing",
marks=pytest.mark.xfail(
reason='https://github.com/joblib/joblib/issues/1086'
),
),
"loky",
]
)
def test_child_raises_parent_exits_cleanly(backend):
# When a task executed by a child process raises an error, the parent
# process's backend is notified, and calls abort_everything.
Expand All @@ -789,7 +800,6 @@ def test_child_raises_parent_exits_cleanly(backend):
data = np.random.rand(1000)
def get_temp_folder(parallel_obj, backend):
if "{b}" == "loky":
return Path(p._backend._workers._temp_folder)
Expand Down

0 comments on commit 067ed4f

Please sign in to comment.