rlib/rvmprof/test/test_rvmprof.py::TestEnable::()::test
self = <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x00007fd889d17fa0>
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 0x00007fd889d17fa0>>(3, (0.5 / 0.004))
E + where <bound method TestEnable.approx_equal of <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x00007fd889d17fa0>> = <rpython.rlib.rvmprof.test.test_rvmprof.TestEnable object at 0x00007fd889d17fa0>.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 0x00007fd889d17fa0>.SAMPLING_INTERVAL
rlib/rvmprof/test/test_rvmprof.py:140: AssertionError
builder: rpython-macos-x86-64 build #278+
test: rlib/rvmprof/test/test_rvmprof.py::TestEnable::()::test