Skip to content

Commit 55ad341

Browse files
committed
maint: remove message
1 parent 7269ff0 commit 55ad341

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

nipype/algorithms/tests/test_CompCor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,14 @@ def test_compcor_bad_input_shapes(self):
109109
interface = CompCor(
110110
realigned_file=data_file, mask_files=self.mask_files[0])
111111
with pytest.raises(ValueError):
112-
interface.run()
113-
pytest.fail("Dimension mismatch")
112+
interface.run() # Dimension mismatch
114113

115114
def test_tcompcor_bad_input_dim(self):
116115
bad_dims = (2, 2, 2)
117116
data_file = utils.save_toy_nii(np.zeros(bad_dims), 'temp.nii')
118117
interface = TCompCor(realigned_file=data_file)
119118
with pytest.raises(ValueError):
120-
interface.run()
121-
pytest.fail("Not a 4D file")
119+
interface.run() # Not a 4D file
122120

123121
def test_tcompcor_merge_intersect_masks(self):
124122
for method in ['union', 'intersect']:
@@ -148,8 +146,7 @@ def test_tcompcor_multi_mask_no_index(self):
148146
interface = TCompCor(
149147
realigned_file=self.realigned_file, mask_files=self.mask_files)
150148
with pytest.raises(ValueError):
151-
interface.run()
152-
pytest.fail("more than one mask file")
149+
interface.run() # more than one mask file
153150

154151
def run_cc(self,
155152
ccinterface,

0 commit comments

Comments
 (0)