[pypy-commit] pypy reflex-support: use type rather than string as dummy return type
wlav
noreply at buildbot.pypy.org
Wed Feb 15 00:45:26 CET 2012
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r52492:a7e3808bb6ac
Date: 2012-02-13 13:04 -0800
http://bitbucket.org/pypy/pypy/changeset/a7e3808bb6ac/
Log: use type rather than string as dummy return type
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
@@ -44,6 +44,8 @@
def perform(self, executioncontext, frame):
pass
+class FakeReturnType(object):
+ pass
class FakeSpace(object):
fake = True
@@ -123,7 +125,7 @@
return None
def allocate_instance(self, cls, w_type):
- assert w_type == "stuff"
+ assert isinstance(w_type, FakeReturnType)
return instantiate(cls)
def _freeze_(self):
@@ -136,7 +138,7 @@
def f():
lib = interp_cppyy.load_dictionary(space, "./example01Dict.so")
cls = interp_cppyy.type_byname(space, "example01")
- inst = cls.get_overload("example01").call(None, "stuff", [FakeInt(0)])
+ inst = cls.get_overload("example01").call(None, FakeReturnType(), [FakeInt(0)])
addDataToInt = cls.get_overload("addDataToInt")
assert isinstance(inst, interp_cppyy.W_CPPInstance)
i = 10
More information about the pypy-commit
mailing list