Author: Brian Kearns <[email protected]>
Branch: refactor-buffer-api
Changeset: r70918:6138264b2697
Date: 2014-04-23 23:25 -0400
http://bitbucket.org/pypy/pypy/changeset/6138264b2697/
Log: fix test_ztranslations
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
@@ -40,6 +40,9 @@
def setclass(self, space, w_subtype):
is_root(w_subtype)
+ def buffer_w(self, space, flags):
+ return Buffer()
+
def str_w(self, space):
return NonConstant("foobar")
@@ -296,14 +299,6 @@
ec._py_repr = None
return ec
- def readbuf_w(self, w_obj):
- is_root(w_obj)
- return Buffer()
-
- def writebuf_w(self, w_obj):
- is_root(w_obj)
- return Buffer()
-
def unicode_from_object(self, w_obj):
return w_some_obj()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit