[pypy-commit] pypy reflex-support: adjust test to new buffer interface

wlav noreply at buildbot.pypy.org
Fri Apr 25 10:15:22 CEST 2014


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r70966:1f6f6b1fac06
Date: 2014-04-25 00:04 -0700
http://bitbucket.org/pypy/pypy/changeset/1f6f6b1fac06/

Log:	adjust test to new buffer interface

diff --git a/pypy/module/cppyy/test/test_zjit.py b/pypy/module/cppyy/test/test_zjit.py
--- a/pypy/module/cppyy/test/test_zjit.py
+++ b/pypy/module/cppyy/test/test_zjit.py
@@ -104,6 +104,7 @@
         class dummy: pass
         self.config = dummy()
         self.config.translating = False
+        self.BUF_SIMPLE = 1
 
     def issequence_w(self, w_obj):
         return True
@@ -132,7 +133,7 @@
         return w_obj
     interp_w._annspecialcase_ = 'specialize:arg(1)'
 
-    def buffer_w(self, w_obj):
+    def buffer_w(self, w_obj, flags):
         return FakeBuffer(w_obj)
 
     def exception_match(self, typ, sub):


More information about the pypy-commit mailing list