[pypy-svn] r66140 - pypy/branch/pyjitpl5/pypy/jit/tl/test

antocuni at codespeak.net antocuni at codespeak.net
Tue Jul 7 11:05:05 CEST 2009


Author: antocuni
Date: Tue Jul  7 11:05:04 2009
New Revision: 66140

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/test/test_tla.py
Log:
use the conveninent tla.run function


Modified: pypy/branch/pyjitpl5/pypy/jit/tl/test/test_tla.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/test/test_tla.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/test/test_tla.py	Tue Jul  7 11:05:04 2009
@@ -25,15 +25,13 @@
 def assemble(mylist):
     return ''.join([chr(x) for x in mylist])
 
-def interp(mylist):
+def interp(mylist, w_arg):
     bytecode = assemble(mylist)
-    f = tla.Frame(bytecode)
-    return f.interp()
+    return tla.run(bytecode, w_arg)
 
 def test_interp():
     bytecode = [
-        tla.CONST_INT, 42,
         tla.RETURN
         ]
-    assert interp(bytecode).intvalue == 42
+    assert interp(bytecode, tla.W_IntObject(42)).intvalue == 42
 



More information about the Pypy-commit mailing list