File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,14 @@ def test_compcor_bad_input_shapes(self):
109
109
interface = CompCor (
110
110
realigned_file = data_file , mask_files = self .mask_files [0 ])
111
111
with pytest .raises (ValueError ):
112
- interface .run ()
113
- pytest .fail ("Dimension mismatch" )
112
+ interface .run () # Dimension mismatch
114
113
115
114
def test_tcompcor_bad_input_dim (self ):
116
115
bad_dims = (2 , 2 , 2 )
117
116
data_file = utils .save_toy_nii (np .zeros (bad_dims ), 'temp.nii' )
118
117
interface = TCompCor (realigned_file = data_file )
119
118
with pytest .raises (ValueError ):
120
- interface .run ()
121
- pytest .fail ("Not a 4D file" )
119
+ interface .run () # Not a 4D file
122
120
123
121
def test_tcompcor_merge_intersect_masks (self ):
124
122
for method in ['union' , 'intersect' ]:
@@ -148,8 +146,7 @@ def test_tcompcor_multi_mask_no_index(self):
148
146
interface = TCompCor (
149
147
realigned_file = self .realigned_file , mask_files = self .mask_files )
150
148
with pytest .raises (ValueError ):
151
- interface .run ()
152
- pytest .fail ("more than one mask file" )
149
+ interface .run () # more than one mask file
153
150
154
151
def run_cc (self ,
155
152
ccinterface ,
You can’t perform that action at this time.
0 commit comments