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

fijal noreply at buildbot.pypy.org
Sun Mar 4 04:37:14 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r53168:f7f81a16d30c
Date: 2012-03-03 19:36 -0800
http://bitbucket.org/pypy/pypy/changeset/f7f81a16d30c/

Log:	fix some tests

diff --git a/pypy/module/micronumpy/interp_boxes.py b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -241,7 +241,7 @@
         arr = W_NDimArray([1], new_string_dtype(space, len(arg)))
         for i in range(len(arg)):
             arr.storage[i] = arg[i]
-        return W_StringBox(arr, 0)
+        return W_StringBox(arr, 0, arr.dtype)
 
 
 class W_UnicodeBox(W_CharacterBox):
@@ -254,7 +254,7 @@
         # XXX not this way, we need store
         #for i in range(len(arg)):
         #    arr.storage[i] = arg[i]
-        return W_UnicodeBox(arr, 0)
+        return W_UnicodeBox(arr, 0, arr.dtype)
 
 W_GenericBox.typedef = TypeDef("generic",
     __module__ = "numpypy",


More information about the pypy-commit mailing list