pypy/module/_cppyy/test/test_cppyy.py::AppTestCPPYY::()::test07_method_constcharp
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0xf34c1f8c>
def test07_method_constcharp(self):
"""Test passing of a C string and returning of a C string on a
method."""
import _cppyy
t = self.example01
e = self.instantiate(t, 42)
res = t.get_overload("addDataToAtoi")(e, "13")
assert res == 55
res = t.get_overload("addToStringValue")(e, "12") # TODO: this leaks
assert res == "54"
res = t.get_overload("addToStringValue")(e, "-12") # TODO: this leaks
assert res == "30"
e.__destruct__()
> assert t.get_overload("getCount")() == 0
E (application-level) AssertionError: assert 1 == 0
E + where 1 = <CPPStaticOverload object at 0xf31c92ac>()
E + where <CPPStaticOverload object at 0xf31c92ac> = <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0xf344372c>>('getCount')
E + where <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0xf344372c>> = <CPPClassDecl object at 0xf344372c>.get_overload
[/build_dir/own-linux-x86-32/build/pypy/module/_cppyy/test/test_cppyy.py:200]:16: AssertionError
builder: own-linux-x86-32 build #9360
test: pypy/module/_cppyy/test/test_cppyy/py/AppTestCPPYY/()/test07_method_constcharp