1. Roberto De Ioris
  2. pypy

Commits

wlav  committed fa8924f

fix bench1.py for new calling w/o needing to pass return type at cppyy-level

  • Participants
  • Parent commits 0fdb7d8
  • Branches reflex-support

Comments (0)

Files changed (1)

File pypy/module/cppyy/test/bench1.py

View file
         self.lib = cppyy.load_reflection_info("./example01Dict.so")
 
         self.cls  = cppyy._type_byname("example01")
-        self.inst = self.cls.get_overload(self.cls.type_name).call(None, cppyy.CPPInstance, 0)
+        self.inst = self.cls.get_overload(self.cls.type_name).call(None, 0)
 
     def __call__(self):
         addDataToInt = self.cls.get_overload("addDataToInt")
         instance = self.inst
         for i in range(NNN):
-            addDataToInt.call(instance, None, i)
+            addDataToInt.call(instance, i)
         return i
 
 class CppyyInterpBench2(CppyyInterpBench1):
         addDataToInt = self.cls.get_overload("overloadedAddDataToInt")
         instance = self.inst
         for i in range(NNN):
-            addDataToInt.call(instance, None, i)
+            addDataToInt.call(instance, i)
         return i
 
 class CppyyPythonBench1(object):