Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r57398:3b6ece4749c8
Date: 2012-09-20 10:59 +0200
http://bitbucket.org/pypy/pypy/changeset/3b6ece4749c8/

Log:    add a 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
@@ -1525,6 +1525,9 @@
         raises(IndexError, "arange(10)[array([10])]")
         assert (arange(10)[[-5, -3]] == [5, 7]).all()
         raises(IndexError, "arange(10)[[-11]]")
+        a = arange(1)
+        a[[0, 0]] += 1
+        assert a[0] == 1
 
     def test_int_array_index_setitem(self):
         from numpypy import array, arange, zeros
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to