Skip to content

Commit 949768a

Browse files
committed
TST: Skip big array check on 32-bit systems
1 parent 02eec3b commit 949768a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nibabel/freesurfer/tests/test_io.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ def test_write_morph_data():
113113
assert_equal(values, read_morph_data('test.curv'))
114114
assert_raises(ValueError, write_morph_data, 'test.curv',
115115
np.zeros(shape), big_num)
116-
assert_raises(ValueError, write_morph_data, 'test.curv',
117-
strided_scalar((big_num,)))
116+
# Windows 32-bit overflows Python int
117+
if np.dtype(np.int) != np.dtype(np.int32):
118+
assert_raises(ValueError, write_morph_data, 'test.curv',
119+
strided_scalar((big_num,)))
118120
for shape in bad_shapes:
119121
assert_raises(ValueError, write_morph_data, 'test.curv',
120122
values.reshape(shape))

0 commit comments

Comments
 (0)