Commits

Alex Gaynor committed 235fc3e

Fixed a typo.

  • Participants
  • Parent commits bf69a76
  • Branches numpy-exp

Comments (0)

Files changed (2)

File pypy/module/micronumpy/numarray.py

 
     @unwrap_spec(item=int, value=float)
     def descr_setitem(self, space, item, value):
-        self.forced_if_needed()
+        self.force_if_needed()
         self.invalidated()
         return self.forced_result.descr_setitem(space, item, value)
 

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

         for i in range(5):
             assert b[i] == i - 1
 
+        a = array(range(5))
+        b = a + a
+        c = b + b
+        b[1] = 5
+        assert c[1] == 4
+
 class AppTestNumpy(object):
     def setup_class(cls):
         py.test.skip("unimplemented")