[pypy-commit] pypy default: backout 711464be0c98, breaks translation

bdkearns noreply at buildbot.pypy.org
Tue Feb 12 23:20:49 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r61155:717502002276
Date: 2013-02-12 17:20 -0500
http://bitbucket.org/pypy/pypy/changeset/717502002276/

Log:	backout 711464be0c98, breaks translation

diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -2195,8 +2195,6 @@
         assert (a + a).item(1) == 4
         raises(IndexError, "array(5).item(1)")
         assert array([1]).item() == 1
-        a = array('x')
-        assert a.item() == 'x'
 
     def test_int_array_index(self):
         from _numpypy import array
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -1593,9 +1593,6 @@
     def get_size(self):
         return self.size
 
-    def to_builtin_type(self, space, box):
-        return space.wrap(self.to_str(box))
-
 class StringType(BaseType, BaseStringType):
     T = lltype.Char
 


More information about the pypy-commit mailing list