Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
83302f60
Commit
83302f60
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_fslsub.py
+3
-3
3 additions, 3 deletions
tests/test_fslsub.py
tests/test_wrappers.py
+1
-1
1 addition, 1 deletion
tests/test_wrappers.py
with
4 additions
and
4 deletions
tests/test_fslsub.py
+
3
−
3
View file @
83302f60
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tests/test_wrappers.py
+
1
−
1
View file @
83302f60
...
@@ -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_applyxfm
4D
():
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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment