[pypy-commit] pypy default: shrink test

mattip noreply at buildbot.pypy.org
Fri Feb 3 12:02:36 CET 2012


Author: mattip
Branch: 
Changeset: r52056:5bf9a08deeb4
Date: 2012-01-29 08:25 +0200
http://bitbucket.org/pypy/pypy/changeset/5bf9a08deeb4/

Log:	shrink test

diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -938,10 +938,9 @@
                    [[86, 302, 518], [110, 390, 670], [134, 478, 822]]]).all()
         c = dot(a, b[:, 2])
         assert (c == [[62, 214, 366], [518, 670, 822]]).all()
-        a = arange(3*4*5*6).reshape((3,4,5,6))
-        b = arange(3*4*5*6)[::-1].reshape((5,4,6,3))
-        assert dot(a, b)[2,3,2,1,2,2] == 499128
-        assert sum(a[2,3,2,:] * b[1,2,:,2]) == 499128
+        a = arange(3*2*6).reshape((3,2,6))
+        b = arange(3*2*6)[::-1].reshape((2,6,3))
+        assert dot(a, b)[2,0,1,2] == 1140
 
     def test_dot_constant(self):
         from _numpypy import array, dot


More information about the pypy-commit mailing list