[pypy-commit] pypy ufuncapi: fix failing test

mattip noreply at buildbot.pypy.org
Fri Dec 5 12:41:04 CET 2014


Author: mattip <matti.picus at gmail.com>
Branch: ufuncapi
Changeset: r74831:35709774642a
Date: 2014-12-05 13:38 +0200
http://bitbucket.org/pypy/pypy/changeset/35709774642a/

Log:	fix failing test

diff --git a/pypy/module/micronumpy/ufuncs.py b/pypy/module/micronumpy/ufuncs.py
--- a/pypy/module/micronumpy/ufuncs.py
+++ b/pypy/module/micronumpy/ufuncs.py
@@ -638,10 +638,8 @@
                 for i in range(len(allargs)):
                     _arg = allargs[i]
                     assert isinstance(_arg, W_NDimArray)
-                    start_dim = len(_arg.get_shape()) - len(iter_shape)
-                    assert start_dim >= 0
+                    start_dim = len(iter_shape)
                     steps += _arg.implementation.strides[start_dim:]
-                #print 'set_dims_and_steps with dims, steps',dims,steps
                 func.set_dims_and_steps(space, dims, steps)
             else:
                 # it is a function, ready to be called by the iterator,


More information about the pypy-commit mailing list