[pypy-commit] pypy numpy-subarrays: Fix test

rguillebert noreply at buildbot.pypy.org
Tue May 14 18:13:58 CEST 2013


Author: Romain Guillebert <romain.py at gmail.com>
Branch: numpy-subarrays
Changeset: r64088:9e3624021257
Date: 2013-05-14 18:13 +0200
http://bitbucket.org/pypy/pypy/changeset/9e3624021257/

Log:	Fix 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
@@ -2705,8 +2705,8 @@
         d = dtype([("x", "int", 3), ("y", "float", 5)])
         a = array([([1, 2, 3], [0.5, 1.5, 2.5, 3.5, 4.5])], dtype=d)
 
-        assert a[0]["x"] == [1, 2, 3].all()
-        assert a[1]["y"] == [0.5, 1.5, 2.5, 3.5, 4.5].all()
+        assert (a[0]["x"] == [1, 2, 3]).all()
+        assert (a[1]["y"] == [0.5, 1.5, 2.5, 3.5, 4.5]).all()
 
 
 class AppTestPyPy(BaseNumpyAppTest):


More information about the pypy-commit mailing list