Skip to content

Commit d9199ca

Browse files
committed
TEST: Add unit to bad set_zoom call
1 parent 3562921 commit d9199ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_spatialimages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def test_zooms(self):
541541
with assert_raises(ValueError):
542542
img.header.get_zooms(units='badarg')
543543
with assert_raises(HeaderDataError):
544-
img.header.set_zooms((-1, 1, 1, 1))
544+
img.header.set_zooms((-1, 1, 1, 1), units='norm')
545545

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

0 commit comments

Comments
 (0)