[pypy-commit] pypy fix-1674: Fix test use .all()

Vincent Legoll pypy.commits at gmail.com
Tue Dec 29 08:07:00 EST 2015


Author: Vincent Legoll <vincent.legoll at idgrilles.fr>
Branch: fix-1674
Changeset: r81477:cd0a7e918cd4
Date: 2015-12-20 23:42 +0100
http://bitbucket.org/pypy/pypy/changeset/cd0a7e918cd4/

Log:	Fix test use .all()

diff --git a/pypy/module/micronumpy/test/test_ndarray.py b/pypy/module/micronumpy/test/test_ndarray.py
--- a/pypy/module/micronumpy/test/test_ndarray.py
+++ b/pypy/module/micronumpy/test/test_ndarray.py
@@ -3276,8 +3276,8 @@
         assert (data[m] == array([[  9.,  10.,  11.],
                                   [ 12.,  13.,  14.],
                                   [  3.,   4.,   5.]])).all()
-        assert data[m, 0] == array([ 9., 12., 3.])
-        assert data[array([1,3,4,1]), 1] == array([4., 10., 13., 4.])
+        assert (data[m, 0] == array([ 9., 12., 3.])).all()
+        assert (data[array([1, 3, 4, 1]), 1] == array([4., 10., 13., 4.])).all()
 
     def test_ravel(self):
         from numpy import arange


More information about the pypy-commit mailing list