Skip to content

Commit b554ee7

Browse files
committed
CI: Skip some multiproc tests in Py38
1 parent df8d407 commit b554ee7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

nipype/pipeline/plugins/tests/test_legacymultiproc_nondaemon.py

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def run_multiproc_nondaemon_with_flag(nondaemon_flag):
134134
return result
135135

136136

137+
@pytest.mark.skipif(sys.version_info >= (3, 8), reason="multiprocessing issues in Python 3.8")
137138
def test_run_multiproc_nondaemon_false():
138139
"""
139140
This is the entry point for the test. Two times a pipe of several
@@ -152,6 +153,7 @@ def test_run_multiproc_nondaemon_false():
152153
assert shouldHaveFailed
153154

154155

156+
@pytest.mark.skipif(sys.version_info >= (3, 8), reason="multiprocessing issues in Python 3.8")
155157
def test_run_multiproc_nondaemon_true():
156158
# with nondaemon_flag = True, the execution should succeed
157159
result = run_multiproc_nondaemon_with_flag(True)

nipype/pipeline/plugins/tests/test_multiproc.py

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""
55
Test the resource management of MultiProc
66
"""
7+
import sys
78
import os
89
import pytest
910
from nipype.pipeline import engine as pe
@@ -33,6 +34,7 @@ def _list_outputs(self):
3334
return outputs
3435

3536

37+
@pytest.mark.skipif(sys.version_info >= (3, 8), reason="multiprocessing issues in Python 3.8")
3638
def test_run_multiproc(tmpdir):
3739
tmpdir.chdir()
3840

@@ -114,6 +116,7 @@ def test_no_more_threads_than_specified(tmpdir):
114116
pipe.run(plugin="MultiProc", plugin_args={"n_procs": max_threads})
115117

116118

119+
@pytest.mark.skipif(sys.version_info >= (3, 8), reason="multiprocessing issues in Python 3.8")
117120
def test_hold_job_until_procs_available(tmpdir):
118121
tmpdir.chdir()
119122

0 commit comments

Comments
 (0)