Author: Vincent Legoll <vincent.leg...@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
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to