Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: stdlib-2.7.9 Changeset: r75819:6e6e94392240 Date: 2015-02-10 23:11 +0100 http://bitbucket.org/pypy/pypy/changeset/6e6e94392240/
Log: Add newset() to the FakeObjSpace, to fix 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 @@ -145,6 +145,12 @@ is_root(w_x) return w_some_obj() + def newset(self, list_w=None): + if list_w is not None: + for w_x in list_w: + is_root(w_x) + return w_some_obj() + def newlist(self, list_w): for w_x in list_w: is_root(w_x) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit