[pypy-commit] pypy numpy-record-dtypes: fix test_zjit

fijal noreply at buildbot.pypy.org
Sat Feb 18 22:27:53 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r52620:2cb4d217dc3d
Date: 2012-02-18 23:27 +0200
http://bitbucket.org/pypy/pypy/changeset/2cb4d217dc3d/

Log:	fix test_zjit

diff --git a/pypy/module/micronumpy/compile.py b/pypy/module/micronumpy/compile.py
--- a/pypy/module/micronumpy/compile.py
+++ b/pypy/module/micronumpy/compile.py
@@ -126,6 +126,11 @@
             return int(w_obj.floatval)
         raise NotImplementedError
 
+    def str_w(self, w_obj):
+        if isinstance(w_obj, StringObject):
+            return w_obj.v
+        raise NotImplementedError
+
     def int(self, w_obj):
         if isinstance(w_obj, IntObject):
             return w_obj


More information about the pypy-commit mailing list