[pypy-commit] pypy reflex-support: add FakeUserDelAction for zjit test

wlav noreply at buildbot.pypy.org
Thu Aug 18 01:20:06 CEST 2011


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r46582:84a28b64f4b3
Date: 2011-08-17 15:22 -0700
http://bitbucket.org/pypy/pypy/changeset/84a28b64f4b3/

Log:	add FakeUserDelAction for zjit test

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
@@ -28,7 +28,15 @@
     def getname(self, space, name):
         return self.name
 
+class FakeUserDelAction(object):
+    def __init__(self, space):
+        pass
 
+    def register_callback(self, w_obj, callback, descrname):
+        pass
+
+    def perform(self, executioncontext, frame):
+        pass
 
 
 class FakeSpace(object):
@@ -48,6 +56,7 @@
 
     def __init__(self):
         self.fromcache = InternalSpaceCache(self).getorbuild
+        self.user_del_action = FakeUserDelAction(self)
 
     def issequence_w(self, w_obj):
         return True


More information about the pypy-commit mailing list