Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r64176:c562ea31ca4b
Date: 2013-05-15 17:19 +0200
http://bitbucket.org/pypy/pypy/changeset/c562ea31ca4b/
Log: fix one problem with test_ztranslation
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
@@ -55,6 +55,10 @@
from rpython.rlib.rbigint import rbigint
return rbigint.fromint(NonConstant(42))
+class W_MyListObj(W_MyObject):
+ def append(self, w_other):
+ pass
+
class W_MyType(W_MyObject):
def __init__(self):
self.mro_w = [w_some_obj(), w_some_obj()]
@@ -107,6 +111,9 @@
self._seen_extras = []
ObjSpace.__init__(self, config=config)
+ def _freeze_(self):
+ return True
+
def float_w(self, w_obj):
is_root(w_obj)
return NonConstant(42.5)
@@ -131,7 +138,7 @@
def newlist(self, list_w):
for w_x in list_w:
is_root(w_x)
- return w_some_obj()
+ return W_MyListObj()
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