We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cfe337 commit dcf9566Copy full SHA for dcf9566
nibabel/tests/test_arrayproxy.py
@@ -88,6 +88,9 @@ def test_init():
88
assert ap.shape != shape
89
# Data stays the same, also
90
assert_array_equal(np.asarray(ap), arr)
91
+ # You wouldn't do this, but order=None explicitly requests the default order
92
+ ap2 = ArrayProxy(bio, FunkyHeader(arr.shape), order=None)
93
+ assert_array_equal(np.asarray(ap2), arr)
94
# C order also possible
95
bio = BytesIO()
96
bio.seek(16)
@@ -97,6 +100,8 @@ def test_init():
97
100
# Illegal init
98
101
with pytest.raises(TypeError):
99
102
ArrayProxy(bio, object())
103
+ with pytest.raises(ValueError):
104
+ ArrayProxy(bio, hdr, order='badval')
105
106
107
def test_tuplespec():
0 commit comments