[pypy-commit] pypy default: fix test, specify int size when examining strides
mattip
noreply at buildbot.pypy.org
Fri May 15 04:26:49 CEST 2015
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r77324:076b58687070
Date: 2015-05-15 05:26 +0300
http://bitbucket.org/pypy/pypy/changeset/076b58687070/
Log: fix test, specify int size when examining strides
diff --git a/pypy/module/micronumpy/test/test_ufuncs.py b/pypy/module/micronumpy/test/test_ufuncs.py
--- a/pypy/module/micronumpy/test/test_ufuncs.py
+++ b/pypy/module/micronumpy/test/test_ufuncs.py
@@ -246,7 +246,7 @@
dtypes=[dtype(int), dtype(int)],
stack_inputs=True,
)
- ai = arange(12*3*3, dtype=int).reshape(12,3,3)
+ ai = arange(12*3*3, dtype='int32').reshape(12,3,3)
exc = raises(ValueError, ufunc, ai[:,:,0])
assert "perand 0 has a mismatch in its core dimension 1" in exc.value.message
ai3 = ufunc(ai[0,:,:])
@@ -254,7 +254,7 @@
assert (ai2 == ai * 2).all()
# view
aiV = ai[::-2, :, :]
- assert aiV.strides == (-144, 24, 8)
+ assert aiV.strides == (-72, 12, 4)
ai2 = ufunc(aiV)
assert (ai2 == aiV * 2).all()
More information about the pypy-commit
mailing list