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

pypy/module/pypyjit/test_pypy_c/test_00_model.py::TestRunPyPyC::()::test_inlined_function

self = <pypy.module.pypyjit.test_pypy_c.test_00_model.TestRunPyPyC object at 0x00007fd2a2b182f8>

    def test_inlined_function(self):
        def f():
            def g(x):
                return x+1 # ID: add
            i = 0
            while i < 1003:
                i = g(i) # ID: call
                a = 0    # to make sure that JUMP_ABSOLUTE is not part of the ID
            return i
        #
        log = self.run(f)
        loop, = log.loops_by_filename(self.filepath)
        call_ops = log.opnames(loop.ops_by_id('call'))
>       assert call_ops == ['guard_not_invalidated', 'force_token'] # it does not follow inlining
E       assert ['force_token'] == ['guard_not_invalidated', 'force_token']
E         At index 0 diff: 'force_token' != 'guard_not_invalidated'
E         Right contains more items, first extra item: 'force_token'
E         Use -v to get the full diff

pypy/module/pypyjit/test_pypy_c/test_00_model.py:541: AssertionError
builder: pypy-c-jit-macos-x86-64 build #1427+
test: pypy/module/pypyjit/test_pypy_c/test_00_model.py::TestRunPyPyC::()::test_inlined_function