@@ -89,13 +89,24 @@ def test_normalize_list_outputs():
89
89
yield assert_true , norm ._list_outputs ()['normalized_files' ][0 ].startswith ('w' )
90
90
clean_directory (outdir , cwd )
91
91
92
+ @skipif (no_spm )
92
93
def test_segment ():
93
- yield assert_equal , spm .Segment ._jobtype , 'spatial'
94
- yield assert_equal , spm .Segment ._jobname , 'preproc'
95
-
94
+ if spm .Info .version ()['name' ] == "SPM12" :
95
+ yield assert_equal , spm .Segment ._jobtype , 'tools'
96
+ yield assert_equal , spm .Segment ._jobname , 'oldseg'
97
+ else :
98
+ yield assert_equal , spm .Segment ._jobtype , 'spatial'
99
+ yield assert_equal , spm .Segment ._jobname , 'preproc'
100
+
101
+ @skipif (no_spm )
96
102
def test_newsegment ():
97
- yield assert_equal , spm .NewSegment ._jobtype , 'tools'
98
- yield assert_equal , spm .NewSegment ._jobname , 'preproc8'
103
+ if spm .Info .version ()['name' ] == "SPM12" :
104
+ yield assert_equal , spm .NewSegment ._jobtype , 'spatial'
105
+ yield assert_equal , spm .NewSegment ._jobname , 'preproc'
106
+ else :
107
+ yield assert_equal , spm .NewSegment ._jobtype , 'tools'
108
+ yield assert_equal , spm .NewSegment ._jobname , 'preproc8'
109
+
99
110
100
111
def test_smooth ():
101
112
yield assert_equal , spm .Smooth ._jobtype , 'spatial'
0 commit comments