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

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

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

    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 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:182]:17: AssertionError
builder: own-linux-aarch64 build #2718
test: pypy/module/_cppyy/test/test_cppyy/py/AppTestCPPYY/()/test06_method_double