Author: Vincent Legoll <vincent.leg...@idgrilles.fr> Branch: fix-1674 Changeset: r81474:2d9b651eafea Date: 2015-12-20 13:22 +0100 http://bitbucket.org/pypy/pypy/changeset/2d9b651eafea/
Log: Add test case: dual indexing mask+selection in the other order 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 @@ -3261,6 +3261,8 @@ m = data[:, 0] % 2 == 0 # array([ True, False, True], dtype=bool) assert data[m, 0] == array([ 0., 10.]) + # Assume False for missing elements of the bool index array + assert data[0, m] == array([ 0., 2.]) def test_ravel(self): from numpy import arange _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit