Commit 45d80024 authored by Stefan Behnel's avatar Stefan Behnel

Simplify test code.

parent 62d061fc
......@@ -43,9 +43,7 @@ cdef class MockBuffer:
if strides is None:
strides = []
cumprod = 1
rshape = list(shape)
rshape.reverse()
for s in rshape:
for s in shape[::-1]:
strides.append(cumprod)
cumprod *= s
strides.reverse()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment