pypy/module/pypyjit/test_pypy_c/test_misc.py::TestMisc::()::test_stat_result_virtual
self = <pypy.module.pypyjit.test_pypy_c.test_misc.TestMisc object at 0x00000198c32248a8>
def test_stat_result_virtual(self):
def main(n):
import os
res = 0
for i in range(n):
res += os.path.islink(__file__) # ID: islink
return res
log = self.run(main, [3000])
loop, = log.loops_by_id("islink")
opnames = log.opnames(loop.allops())
# one left (used to be 20+)
> assert opnames.count('new_with_vtable') == 1
E AssertionError
pypy\module\pypyjit\test_pypy_c\test_misc.py:438: AssertionError
builder: pypy-c-jit-win-x86-64 build #2370+
test: pypy/module/pypyjit/test_pypy_c/test_misc.py::TestMisc::()::test_stat_result_virtual