Skip to content

Commit 716ed7e

Browse files
committed
TEST: Test from_header(check=False)
1 parent 7f61e9d commit 716ed7e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nibabel/tests/test_analyze.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,10 @@ def test_from_header(self):
525525
hdr.set_data_dtype(np.float64)
526526
hdr.set_data_shape((1, 2, 3))
527527
hdr.set_zooms((3.0, 2.0, 1.0))
528-
copy = klass.from_header(hdr)
529-
assert_equal(hdr, copy)
530-
assert_false(hdr is copy)
528+
for check in (True, False):
529+
copy = klass.from_header(hdr, check=check)
530+
assert_equal(hdr, copy)
531+
assert_false(hdr is copy)
531532

532533
class C(object):
533534

0 commit comments

Comments
 (0)