Skip to content

Commit 97e3aa9

Browse files
author
Mathieu Scheltienne
committed
more fix
1 parent 1a9ebad commit 97e3aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/freesurfer/tests/test_mghformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def test_mghheader_default_structarr():
345345
for endianness in (None,) + BIG_CODES:
346346
hdr2 = MGHHeader.default_structarr(endianness=endianness)
347347
assert hdr2 == hdr
348-
assert hdr2.newbyteorder('>') == hdr
348+
assert hdr2.view(hdr2.dtype.newbyteorder('>')) == hdr
349349

350350
for endianness in LITTLE_CODES:
351351
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)