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

pypy/module/pypyjit/test_pypy_c/test_call.py::TestCall::()::test_kwargs_update_virtual1

self = <pypy.module.pypyjit.test_pypy_c.test_call.TestCall object at 0x000000000fffb018>

    def test_kwargs_update_virtual1(self):
        log = self.run("""
            def f(**kwargs):
                return len(kwargs)
            def main(stop):
                i = 0
                res = 0
                while i < stop:
                    d = {'a': 1, 'b': 2}
                    # used to force the dict!
                    res += f(c=2, **d) # ID: call
                    i += 1
                return res
            """, [1000])
        loop, = log.loops_by_id('call')
        ops = loop.ops_by_id('call')
        assert log.opnames(ops) == ["guard_not_invalidated", "force_token",
>               "int_add_ovf", "guard_no_overflow"]
E       assert ['force_token..._no_overflow'] == ['guard_not_in..._no_overflow']
E         At index 0 diff: 'force_token' != 'guard_not_invalidated'
E         Right contains more items, first extra item: 'guard_no_overflow'
E         Use -v to get the full diff

pypy/module/pypyjit/test_pypy_c/test_call.py:575: AssertionError
builder: pypy-c-jit-linux-x86-64 build #11971+
test: pypy/module/pypyjit/test_pypy_c/test_call.py::TestCall::()::test_kwargs_update_virtual1