Skip to content

Commit 713c559

Browse files
committed
TEST: Add unit to bad set_zoom call
1 parent f3dbe72 commit 713c559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_spatialimages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def test_zooms(self):
424424
with assert_raises(ValueError):
425425
img.header.get_zooms(units='badarg')
426426
with assert_raises(HeaderDataError):
427-
img.header.set_zooms((-1, 1, 1, 1))
427+
img.header.set_zooms((-1, 1, 1, 1), units='norm')
428428

429429
def test_zooms_edge_cases(self):
430430
''' Override for classes where *_norm_zooms != *_zooms '''

0 commit comments

Comments
 (0)