[pypy-commit] pypy fix-1674: Make test look consistent with other ones

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


Author: Vincent Legoll <vincent.legoll at idgrilles.fr>
Branch: fix-1674
Changeset: r81480:a9d3428f8847
Date: 2015-12-23 15:30 +0100
http://bitbucket.org/pypy/pypy/changeset/a9d3428f8847/

Log:	Make test look consistent with other ones

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
@@ -3406,8 +3406,7 @@
         assert (array([])[[]] == []).all()
         a = array([[1, 2], [3, 4], [5, 6]])
 
-        b = a[array([0, 0])]
-        assert (b == [[1, 2], [1, 2]]).all()
+        assert (a[array([0, 0])] == [[1, 2], [1, 2]]).all()
         assert (a[[[0, 1], [0, 0]]] == array([1, 3])).all()
         assert (a[array([0, 2])] == [[1, 2], [5, 6]]).all()
         assert (a[array([0, 2]), 1] == [2, 6]).all()


More information about the pypy-commit mailing list