Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/_cppyy/test/test_cppyy.py::AppTestCPPYY::()::test07_method_constcharp

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0xfffbbd511390>

    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 0x0000fffbbd3369d0>()
E            +    where <CPPStaticOverload object at 0x0000fffbbd3369d0> = <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0x0000fffbbd511350>>('getCount')
E            +      where <bound method CPPClassDecl.get_overload of <CPPClassDecl object at 0x0000fffbbd511350>> = <CPPClassDecl object at 0x0000fffbbd511350>.get_overload

[/build_dir/own-linux-aarch64/build/pypy/module/_cppyy/test/test_cppyy.py:200]:16: AssertionError
builder: own-linux-aarch64 build #2718
test: pypy/module/_cppyy/test/test_cppyy/py/AppTestCPPYY/()/test07_method_constcharp