[pypy-commit] pypy numpy-record-dtypes: fix more tests

fijal noreply at buildbot.pypy.org
Tue Feb 14 15:05:24 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r52451:74906f74143e
Date: 2012-02-14 16:05 +0200
http://bitbucket.org/pypy/pypy/changeset/74906f74143e/

Log:	fix more tests

diff --git a/pypy/module/micronumpy/interp_dtype.py b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -46,7 +46,7 @@
 
     def getitem_bool(self, arr, i):
         isize = self.itemtype.get_element_size()
-        return self.itemtype.read_bool(arr.storage, isize, i, 0)
+        return self.itemtype.read_bool(arr, isize, i, 0)
 
     def setitem(self, arr, i, box):
         self.itemtype.store(arr, self.itemtype.get_element_size(), i, 0, box)
diff --git a/pypy/module/micronumpy/interp_support.py b/pypy/module/micronumpy/interp_support.py
--- a/pypy/module/micronumpy/interp_support.py
+++ b/pypy/module/micronumpy/interp_support.py
@@ -53,7 +53,7 @@
 
     a = W_NDimArray(num_items, [num_items], dtype=dtype)
     for i, val in enumerate(items):
-        a.dtype.setitem(a.storage, i, val)
+        a.dtype.setitem(a, i, val)
     
     return space.wrap(a)
 


More information about the pypy-commit mailing list