We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd24ea commit d3ff652Copy full SHA for d3ff652
nipype/utils/tests/test_functions.py
@@ -28,13 +28,14 @@ def _print_statement():
28
except SyntaxError:
29
return False
30
31
-@pytest.mark.skipif(sys.version_info[0] > 2, reason="breaks python 3")
32
-def test_func_py2():
+def test_func_string():
33
def is_string():
34
return isinstance('string', str)
35
36
wrapped_func = create_function_from_source(getsource(is_string))
37
assert is_string() == wrapped_func()
38
39
- wrapped_func2 = create_function_from_source(getsource(_print_statement))
40
- assert wrapped_func2()
+@pytest.mark.skipif(sys.version_info[0] > 2, reason="breaks python 3")
+def test_func_print_py2():
+ wrapped_func = create_function_from_source(getsource(_print_statement))
41
+ assert wrapped_func()
0 commit comments