import py import binary_trees import os from rpython.rlib.rjitlog import rjitlog def test_binary_trees(): file = ('./jit.log') fileno = os.open(file, os.O_WRONLY | os.O_CREAT) enable_jitlog = lambda: rjitlog.enable_jitlog(fileno) os.system("./binary_trees.py 100 100")
running it as /opt/pypy/pytest.py test_shubha.py The log gets created but it is empty
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev