Author: Matti Picus <[email protected]>
Branch: remove-array-smm
Changeset: r64064:13c604db8178
Date: 2013-05-14 11:14 +0300
http://bitbucket.org/pypy/pypy/changeset/13c604db8178/

Log:    reopen closed branch for failing ztranslation test

diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -63,6 +63,10 @@
     def get_module(self):
         return w_some_obj()
 
+class W_List(W_MyObject):
+    def append(self, item):
+        return self
+
 def w_some_obj():
     if NonConstant(False):
         return W_Root()
@@ -131,7 +135,7 @@
     def newlist(self, list_w):
         for w_x in list_w:
             is_root(w_x)
-        return w_some_obj()
+        return W_List()
 
     def newslice(self, w_start, w_end, w_step):
         is_root(w_start)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to