Skip to content

Commit a18802f

Browse files
authored
Merge pull request #2006 from djarecka/segfault_xfail
adding pytest skipif for test_mapnode_crash
2 parents e605dfe + a9f7c0e commit a18802f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nipype/pipeline/engine/tests/test_utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from __future__ import print_function, division, unicode_literals, absolute_import
77
from builtins import range, open
88

9-
import os
9+
import os, sys
1010
from copy import deepcopy
1111
from shutil import rmtree
1212
import pytest
@@ -343,6 +343,8 @@ def dummy_func(value):
343343
return value + 1
344344

345345

346+
@pytest.mark.skipif(sys.version_info < (3,0),
347+
reason="the famous segfault #1788")
346348
def test_mapnode_crash(tmpdir):
347349
"""Test mapnode crash when stop_on_first_crash is True"""
348350
cwd = os.getcwd()
@@ -360,6 +362,8 @@ def test_mapnode_crash(tmpdir):
360362
os.chdir(cwd)
361363

362364

365+
@pytest.mark.skipif(sys.version_info < (3,0),
366+
reason="the famous segfault #1788")
363367
def test_mapnode_crash2(tmpdir):
364368
"""Test mapnode crash when stop_on_first_crash is False"""
365369
cwd = os.getcwd()
@@ -376,6 +380,8 @@ def test_mapnode_crash2(tmpdir):
376380
os.chdir(cwd)
377381

378382

383+
@pytest.mark.skipif(sys.version_info < (3,0),
384+
reason="the famous segfault #1788")
379385
def test_mapnode_crash3(tmpdir):
380386
"""Test mapnode crash when mapnode is embedded in a workflow"""
381387
node = pe.MapNode(niu.Function(input_names=['WRONG'],

0 commit comments

Comments
 (0)