Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r54649:e8a35d94d312
Date: 2012-04-23 10:27 +0200
http://bitbucket.org/pypy/pypy/changeset/e8a35d94d312/
Log: yet another passing 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
@@ -1836,6 +1836,13 @@
a[a & 1 == 0] = 15
assert (a == [[15, 1], [15, 3], [15, 5], [15, 7], [15, 9]]).all()
+ def test_array_indexing_bool_setitem_2(self):
+ from _numpypy import arange
+ a = arange(10).reshape(5, 2)
+ a = a[::2]
+ a[a & 1 == 0] = 15
+ assert (a == [[15, 1], [15, 5], [15, 9]]).all()
+
def test_copy_kwarg(self):
from _numpypy import array
x = array([1, 2, 3])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit