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

pypy/module/_cffi_backend/test/test_c.py::AppTestC::()::test_call_function_9

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

    def test_call_function_9(self):
        import _all_test_c
>       _all_test_c.test_call_function_9()

[/tmp/buildbot-arm64/usession-main-7117/test_c/_test_c.py:224]:3: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def test_call_function_9():
        BInt = new_primitive_type("int")
        BFunc9 = new_function_type((BInt,), BInt, True)    # vararg
        f = cast(BFunc9, _testfunc(9))
        assert f(0) == 0
>       assert f(1, cast(BInt, 42)) == 42
E       (application-level) AssertionError: assert -66666666 == 42
E        +  where -66666666 = <cdata 'int(*)(int, ...)' 0x100ca3d38>(1, <cdata 'int' 42>)
E        +    where <cdata 'int' 42> = cast(<ctype 'int'>, 42)

/tmp/buildbot-arm64/usession-main-7117/test_c/_all_test_c.py:1195: AssertionError
builder: own-macos-arm64 build #1200
test: pypy/module/_cffi_backend/test/test_c/py/AppTestC/()/test_call_function_9