Skip to content

Commit e7e4dcc

Browse files
committed
add +IGNORE_UNICODE to doctest, update specs
1 parent e5a73b7 commit e7e4dcc

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

nipype/interfaces/fsl/tests/test_auto_WarpPointsFromStd.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ def test_WarpPointsFromStd_inputs():
77
input_map = dict(args=dict(argstr='%s',
88
),
99
coord_mm=dict(argstr='-mm',
10-
xor=['coord_vox'],
10+
xor=[u'coord_vox'],
1111
),
1212
coord_vox=dict(argstr='-vox',
13-
xor=['coord_mm'],
13+
xor=[u'coord_mm'],
1414
),
1515
environ=dict(nohash=True,
1616
usedefault=True,
@@ -25,22 +25,16 @@ def test_WarpPointsFromStd_inputs():
2525
mandatory=True,
2626
position=-2,
2727
),
28-
out_file=dict(argstr='> %s',
29-
name_source='in_coords',
30-
name_template='%s_warped',
31-
output_name='out_file',
32-
position=-1,
33-
),
3428
std_file=dict(argstr='-std %s',
3529
mandatory=True,
3630
),
3731
terminal_output=dict(nohash=True,
3832
),
3933
warp_file=dict(argstr='-warp %s',
40-
xor=['xfm_file'],
34+
xor=[u'xfm_file'],
4135
),
4236
xfm_file=dict(argstr='-xfm %s',
43-
xor=['warp_file'],
37+
xor=[u'warp_file'],
4438
),
4539
)
4640
inputs = WarpPointsFromStd.input_spec()

nipype/interfaces/fsl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,7 @@ class WarpPointsFromStd(CommandLine):
20732073
>>> warppoints.inputs.std_file = 'mni.nii'
20742074
>>> warppoints.inputs.warp_file = 'warpfield.nii'
20752075
>>> warppoints.inputs.coord_mm = True
2076-
>>> warppoints.cmdline # doctest: +ELLIPSIS
2076+
>>> warppoints.cmdline # doctest: +ELLIPSIS +IGNORE_UNICODE
20772077
'std2imgcoord -mm -img T1.nii -std mni.nii -warp warpfield.nii surf.txt'
20782078
>>> res = warppoints.run() # doctest: +SKIP
20792079

0 commit comments

Comments
 (0)