[pypy-svn] r37557 - pypy/dist/pypy/jit/codegen/demo
arigo at codespeak.net
arigo at codespeak.net
Mon Jan 29 18:22:29 CET 2007
Author: arigo
Date: Mon Jan 29 18:22:28 2007
New Revision: 37557
Modified:
pypy/dist/pypy/jit/codegen/demo/autorun.py
Log:
Don't run autorun.py forever, it would exhaust memory.
Add a comment about how to run it forever from the shell.
Modified: pypy/dist/pypy/jit/codegen/demo/autorun.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/demo/autorun.py (original)
+++ pypy/dist/pypy/jit/codegen/demo/autorun.py Mon Jan 29 18:22:28 2007
@@ -3,7 +3,13 @@
from pypy.jit.codegen.demo import conftest as demo_conftest
-def test_forever():
- while True:
+# each iteration of test_many_times leaks memory, so we can't run
+# it forever. If you want that result, use a bash command like:
+#
+# while py.test autorun.py --pdb; do echo "again"; done
+
+
+def test_many_times():
+ for i in range(80):
demo_conftest.option.randomseed = random.randrange(0, 100000)
test_random.test_random_function()
More information about the Pypy-commit
mailing list