66from __future__ import print_function , division , unicode_literals , absolute_import
77from builtins import range , open
88
9- import os
9+ import os , sys
1010from copy import deepcopy
1111from shutil import rmtree
1212import 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" )
346348def 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" )
363367def 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" )
379385def 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