[pypy-commit] pypy default: a failing test for issue 1438
mattip
noreply at buildbot.pypy.org
Mon Apr 8 20:35:05 CEST 2013
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r63152:ecf9e3e0f3b1
Date: 2013-04-08 20:07 +0300
http://bitbucket.org/pypy/pypy/changeset/ecf9e3e0f3b1/
Log: a failing test for issue 1438
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
@@ -422,6 +422,12 @@
assert a[4] == 5.0
raises(IndexError, "a[5] = 0.0")
raises(IndexError, "a[-6] = 3.0")
+ a = array(range(5), dtype=float)
+ a[0] = 0.005
+ assert a[0] == 0.005
+ a[1] = array(-0.005)
+ assert a[1] == -0.005
+
def test_setitem_tuple(self):
from numpypy import array
More information about the pypy-commit
mailing list