[pypy-commit] pypy refactor-buffer-api: This seems to fix the test_ztranslation errors.

Manuel Jacob noreply at buildbot.pypy.org
Wed Nov 20 22:32:44 CET 2013


Author: Manuel Jacob
Branch: refactor-buffer-api
Changeset: r68262:6a1045ec1635
Date: 2013-11-20 22:31 +0100
http://bitbucket.org/pypy/pypy/changeset/6a1045ec1635/

Log:	This seems to fix the test_ztranslation errors.

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
@@ -290,6 +290,11 @@
         ec._py_repr = None
         return ec
 
+    def buffer_w(self, w_obj):
+        from pypy.interpreter.buffer import Buffer
+        is_root(w_obj)
+        return Buffer()
+
     # ----------
 
     def translates(self, func=None, argtypes=None, seeobj_w=[], **kwds):


More information about the pypy-commit mailing list