[pypy-svn] r64623 - pypy/branch/pyjitpl5/pypy/jit/backend/test

fijal at codespeak.net fijal at codespeak.net
Fri Apr 24 02:59:07 CEST 2009


Author: fijal
Date: Fri Apr 24 02:59:06 2009
New Revision: 64623

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py
Log:
ability to loop infinitely


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py	Fri Apr 24 02:59:06 2009
@@ -224,5 +224,9 @@
 
 def test_random_function():
     r = Random()
-    for i in range(demo_conftest.option.repeat):
-        check_random_function(r)
+    if demo_conftest.option.repeat == -1:
+        while 1: 
+            check_random_function(r)
+    else:
+        for i in range(demo_conftest.option.repeat):
+            check_random_function(r)



More information about the Pypy-commit mailing list