New paste Repaste Download
py = '3.9', mojo = True
    @allpythons()
    @mojo
    def test_fork_memory(py, mojo):
        result = austin("-mi", "1ms", *python(py), target("target34.py"), mojo=mojo)
        assert result.returncode == 0, result.stderr or result.stdout
    
        assert has_pattern(result.stdout, "target34.py:keep_cpu_busy:32")
    
        meta = metadata(result.stdout)
    
        assert meta["mode"] == "memory"
    
        d = int(meta["duration"])
        assert d > 100000
    
        ms = [int(_.rpartition(" ")[-1]) for _ in samples(result.stdout)]
        alloc = sum(_ for _ in ms if _ > 0)
        dealloc = sum(-_ for _ in ms if _ < 0)
    
>       assert alloc * dealloc
E       assert (645636042579883638784 * 0)
test/functional/test_fork.py:136: AssertionError
Filename: None. Size: 777b. View raw, , hex, or download this file.

This paste expires on 2025-06-05 09:38:45.022104. Pasted through deprecated-web.