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

Simplify test code.

parent 62d061fc
...@@ -43,9 +43,7 @@ cdef class MockBuffer: ...@@ -43,9 +43,7 @@ cdef class MockBuffer:
if strides is None: if strides is None:
strides = [] strides = []
cumprod = 1 cumprod = 1
rshape = list(shape) for s in shape[::-1]:
rshape.reverse()
for s in rshape:
strides.append(cumprod) strides.append(cumprod)
cumprod *= s cumprod *= s
strides.reverse() 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