diff --git a/tests/test_fslsub.py b/tests/test_fslsub.py index 07f5a39f061ea0fe4a1a21d3e3c361f1f4f5c450..5de9bcf9e3a743a5600fa1bf204ac8e91dca76ae 100644 --- a/tests/test_fslsub.py +++ b/tests/test_fslsub.py @@ -19,8 +19,8 @@ from fsl.utils.tempdir import tempdir from . import mockFSLDIR -mock_fsl_sub = f""" -#!{sys.executable} +mock_fsl_sub = """ +#!{} import random import os @@ -56,7 +56,7 @@ with open(f'{{cmd}}.o{{jobid}}', 'w') as stdout, \ print(str(jobid)) sys.exit(0) -""".strip() +""".format(sys.executable).strip() @contextlib.contextmanager diff --git a/tests/test_wrappers.py b/tests/test_wrappers.py index f1eda504b0a8ddcb501b8ba9e0a7ff231ebe007e..1759672a94c96c77cbe7946d86431d63b4cd0e83 100644 --- a/tests/test_wrappers.py +++ b/tests/test_wrappers.py @@ -105,7 +105,7 @@ def test_applyxfm(): assert checkResult(result.stdout[0], *expected) -def test_applyxfm(): +def test_applyxfm4D(): with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('applyxfm4D',)) as fsldir: applyxfm = op.join(fsldir, 'bin', 'applyxfm4D') result = fw.applyxfm4D(