Skip to content
Snippets Groups Projects
Commit 83302f60 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: I still feel obliged to maintain py35 support, so no f-strings

parent 744d2475
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,8 @@ from fsl.utils.tempdir import tempdir ...@@ -19,8 +19,8 @@ from fsl.utils.tempdir import tempdir
from . import mockFSLDIR from . import mockFSLDIR
mock_fsl_sub = f""" mock_fsl_sub = """
#!{sys.executable} #!{}
import random import random
import os import os
...@@ -56,7 +56,7 @@ with open(f'{{cmd}}.o{{jobid}}', 'w') as stdout, \ ...@@ -56,7 +56,7 @@ with open(f'{{cmd}}.o{{jobid}}', 'w') as stdout, \
print(str(jobid)) print(str(jobid))
sys.exit(0) sys.exit(0)
""".strip() """.format(sys.executable).strip()
@contextlib.contextmanager @contextlib.contextmanager
......
...@@ -105,7 +105,7 @@ def test_applyxfm(): ...@@ -105,7 +105,7 @@ def test_applyxfm():
assert checkResult(result.stdout[0], *expected) assert checkResult(result.stdout[0], *expected)
def test_applyxfm(): def test_applyxfm4D():
with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('applyxfm4D',)) as fsldir: with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('applyxfm4D',)) as fsldir:
applyxfm = op.join(fsldir, 'bin', 'applyxfm4D') applyxfm = op.join(fsldir, 'bin', 'applyxfm4D')
result = fw.applyxfm4D( result = fw.applyxfm4D(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment