1. Pypy
  2. Untitled project
  3. pypy

Commits

mattip  committed ecf9e3e

a failing test for issue 1438

  • Participants
  • Parent commits 341a34c
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/micronumpy/test/test_numarray.py

View file
         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