[pypy-commit] pypy numpy-indexing-by-arrays-2: good, fix the test

fijal noreply at buildbot.pypy.org
Tue Jan 17 11:10:54 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-indexing-by-arrays-2
Changeset: r51385:23d3ca4e7881
Date: 2012-01-17 12:10 +0200
http://bitbucket.org/pypy/pypy/changeset/23d3ca4e7881/

Log:	good, fix the 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
@@ -1318,7 +1318,7 @@
         assert (a[a > 3] == [4, 5, 6, 7, 8, 9]).all()
         a = arange(10).reshape(5, 2)
         assert (a[a > 3] == [4, 5, 6, 7, 8, 9]).all()
-        assert (a[a & 1] == [0, 2, 4, 6, 8]).all()
+        assert (a[a & 1 == 1] == [1, 3, 5, 7, 9]).all()
 
 class AppTestSupport(BaseNumpyAppTest):
     def setup_class(cls):


More information about the pypy-commit mailing list