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

rlib/rvmprof/test/test_rvmprof.py::TestEnable::()::test

self = <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x0000000149010c28>

    def test(self):
        from vmprof import read_profile
        assert self.entry_point(10**4, 0.1, 0) == 99990000
        assert self.tmpfile.check()
        self.tmpfile.remove()
        #
        assert self.rpy_entry_point(10**4, 0.5, 0) == 99990000
        assert self.tmpfile.check()
        prof = read_profile(self.tmpfilename)
        tree = prof.get_tree()
        assert tree.name == 'py:code:52:test_enable'
>       assert self.approx_equal(tree.count, 0.5/self.SAMPLING_INTERVAL)
E       AssertionError: assert False
E        +  where False = <bound method TestEnable.approx_equal of <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x0000000149010c28>>(3, (0.5 / 0.004))
E        +    where <bound method TestEnable.approx_equal of <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x0000000149010c28>> = <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x0000000149010c28>.approx_equal
E        +    and   3 = 3
E        +      where 3 = <Node: py:code:52:test_enable (3) []>.count
E        +    and   0.004 = <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x0000000149010c28>.SAMPLING_INTERVAL

rlib/rvmprof/test/test_rvmprof.py:140: AssertionError
builder: rpython-macos-arm64 build #265+
test: rlib/rvmprof/test/test_rvmprof.py::TestEnable::()::test