Skip to content

Commit d3ff652

Browse files
committed
fix: cover some py3 in function tests
1 parent 8fd24ea commit d3ff652

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nipype/utils/tests/test_functions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ def _print_statement():
2828
except SyntaxError:
2929
return False
3030

31-
@pytest.mark.skipif(sys.version_info[0] > 2, reason="breaks python 3")
32-
def test_func_py2():
31+
def test_func_string():
3332
def is_string():
3433
return isinstance('string', str)
3534

3635
wrapped_func = create_function_from_source(getsource(is_string))
3736
assert is_string() == wrapped_func()
3837

39-
wrapped_func2 = create_function_from_source(getsource(_print_statement))
40-
assert wrapped_func2()
38+
@pytest.mark.skipif(sys.version_info[0] > 2, reason="breaks python 3")
39+
def test_func_print_py2():
40+
wrapped_func = create_function_from_source(getsource(_print_statement))
41+
assert wrapped_func()

0 commit comments

Comments
 (0)