[pypy-svn] r64784 - pypy/branch/pyjitpl5/pypy/jit/tl

arigo at codespeak.net arigo at codespeak.net
Tue Apr 28 17:45:43 CEST 2009


Author: arigo
Date: Tue Apr 28 17:45:41 2009
New Revision: 64784

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
Log:
Run the tests by importing them, instead of using regrtest.


Modified: pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py	Tue Apr 28 17:45:41 2009
@@ -1,13 +1,14 @@
 TESTNAME = 'test_builtin'
 
 def do():
-    import test.regrtest, sys
-    sys.argv = ['regrtest.py', TESTNAME]
-    test.regrtest.main()
+    __import__('test.' + TESTNAME)
+    print "---ending 1---"
 
 try:
     do()
+    print "---ending 2---"
 except BaseException, e:
+    print "---ending 0---"
     print '/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\'
     import sys
     import traceback



More information about the Pypy-commit mailing list