Skip to content

Commit 37405c3

Browse files
committed
TEST: Check legal but incompatible shapes
1 parent f4f3894 commit 37405c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nibabel/tests/test_arrayproxy.py

+2
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ def test_reshaped_is_proxy():
230230
assert_true(isinstance(minus1, ArrayProxy))
231231
assert_equal(minus1.shape, (2, 3, 4))
232232
assert_raises(ValueError, prox.reshape, (-1, -1, 4))
233+
assert_raises(ValueError, prox.reshape, (2, 3, 5))
234+
assert_raises(ValueError, prox.reshape, (2, -1, 5))
233235

234236

235237
def test_get_unscaled():

0 commit comments

Comments
 (0)