Navigation Menu

Skip to content

Commit

Permalink
Accept different strides on numpy for newaxis
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 11, 2015
1 parent 68c1fd0 commit 955ef2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_array.py
Expand Up @@ -860,7 +860,9 @@ def test_newaxis(ctx_factory):
b = a[:, np.newaxis]

assert b_gpu.shape == b.shape
assert b_gpu.strides == b.strides
for i in range(b.ndim):
if b.shape[i] > 1:
assert b_gpu.strides[i] == b.strides[i]


if __name__ == "__main__":
Expand Down

0 comments on commit 955ef2f

Please sign in to comment.