[pypy-commit] pypy default: add a test
fijal
noreply at buildbot.pypy.org
Thu Sep 20 11:00:38 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
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
More information about the pypy-commit
mailing list