pypy/module/_cppyy/test/test_cppyy.py::AppTestCPPYY::()::test06_method_double
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0xfffc60152390>
def test06_method_double(self):
"""Test passing of a double and returning of double on a method."""
import _cppyy
t = self.example01
e = self.instantiate(t, 13)
res = t.get_overload("addDataToDouble")(e, 16)
assert round(res-29, 8) == 0.
e.__destruct__()
e = self.instantiate(t, -13)
res = t.get_overload("addDataToDouble")(e, 16)
assert round(res-3, 8) == 0.
e.__destruct__()
> assert t.get_overload("getCount")() == 0
E (application-level) AssertionError: assert 1 == 0
E + where 1 = <CPPStaticOverload object at 0x0000fffc5ff779d0>()
E + where <CPPStaticOverload object at 0x0000fffc5ff779d0> = <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0x0000fffc60152350>>('getCount')
E + where <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0x0000fffc60152350>> = <CPPClassDecl object at 0x0000fffc60152350>.get_overload
[/build_dir/own-linux-aarch64/build/pypy/module/_cppyy/test/test_cppyy.py:182]:17: AssertionError
builder: own-linux-aarch64 build #2739+
test: pypy/module/_cppyy/test/test_cppyy.py::AppTestCPPYY::()::test06_method_double