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 0x00007f937163cec8>

    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 0x00007f937163cec8>>(1, (0.5 / 0.004))
E        +    where <bound method TestEnable.approx_equal of <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x00007f937163cec8>> = <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x00007f937163cec8>.approx_equal
E        +    and   1 = 1
E        +      where 1 = <Node: py:code:52:test_enable (1) []>.count
E        +    and   0.004 = <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x00007f937163cec8>.SAMPLING_INTERVAL

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