Author: mattip <matti.pi...@gmail.com> Branch: Changeset: r80460:53d7da76969d Date: 2015-10-26 23:32 +1100 http://bitbucket.org/pypy/pypy/changeset/53d7da76969d/
Log: fix tests diff --git a/pypy/module/cpyext/test/test_ndarrayobject.py b/pypy/module/cpyext/test/test_ndarrayobject.py --- a/pypy/module/cpyext/test/test_ndarrayobject.py +++ b/pypy/module/cpyext/test/test_ndarrayobject.py @@ -430,5 +430,5 @@ assert (out == arr * 2).all() times2prime = mod.create_ufunc_signature() - out = times2prime(arr, sig='(d)->(d)', extobj=[0, 0, None]) + out = times2prime(arr, sig='d->d', extobj=[0, 0, None]) assert (out == arr * 2).all() diff --git a/pypy/module/micronumpy/test/test_subtype.py b/pypy/module/micronumpy/test/test_subtype.py --- a/pypy/module/micronumpy/test/test_subtype.py +++ b/pypy/module/micronumpy/test/test_subtype.py @@ -437,7 +437,7 @@ assert (b == a).all() d = np.empty([6,2], dtype=float) - d.view(int).fill(0xdeadbeef) + d.view('int64').fill(0xdeadbeef) e = d[0::3,:] e[...] = [[1, 2], [3, 4]] assert e.strides == (48, 8) @@ -447,7 +447,7 @@ assert (g == [[1, 2], [3, 4]]).all() k = np.empty([2, 8], dtype=float) - k.view(int).fill(0xdeadbeef) + k.view('int64').fill(0xdeadbeef) m = k[:, ::-4] m[...] = [[1, 2], [3, 4]] assert m.strides == (64, -32) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit