Skip to content

Commit 3869064

Browse files
committed
test: cover one more line of code with a test
1 parent 44c4966 commit 3869064

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nitransforms/tests/test_io.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ def test_itk_h5(data_path):
345345
data_path / 'ds-005_sub-01_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5'
346346
)
347347

348+
with pytest.raises(RuntimeError):
349+
itk.ITKCompositeH5.from_filename(
350+
data_path / 'ds-005_sub-01_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.x5'
351+
)
352+
348353

349354
@pytest.mark.parametrize('file_type, test_file', [
350355
(LTA, 'from-fsnative_to-scanner_mode-image.lta')

0 commit comments

Comments
 (0)