[pypy-svn] r53586 - pypy/branch/jit-hotpath/pypy/jit/rainbow/test
arigo at codespeak.net
arigo at codespeak.net
Tue Apr 8 17:14:42 CEST 2008
Author: arigo
Date: Tue Apr 8 17:14:42 2008
New Revision: 53586
Modified:
pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_3tl.py
Log:
The test for tiny3_hotpath.py must use the HotPathTest base class.
The PortalTest base class is only for non-hotpath tests.
Modified: pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_3tl.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_3tl.py (original)
+++ pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_3tl.py Tue Apr 8 17:14:42 2008
@@ -1,15 +1,10 @@
-from pypy.rpython.module.support import LLSupport
-from pypy.jit.rainbow.test.test_portal import PortalTest
-from pypy.jit.rainbow.test.test_vlist import P_OOPSPEC
-from pypy.tool.sourcetools import func_with_new_name
-from pypy.jit.conftest import Benchmark
+from pypy.jit.rainbow.test.test_hotpath import HotPathTest
from pypy.jit.tl import tiny3_hotpath as tiny3
from pypy.jit.tl.targettiny3hotpath import MyHintAnnotatorPolicy
-class TestTL(PortalTest):
- type_system = "lltype"
+class TestTL(HotPathTest):
def test_tl(self):
def main(bytecode, arg1, arg2, arg3):
@@ -23,6 +18,6 @@
args = [tiny3.IntBox(arg1), tiny3.IntBox(arg3), tiny3.IntBox(arg3)]
return tiny3.repr(tiny3.interpret(bytecode, args))
- res = self.timeshift_from_portal(main, tiny3.interpret, [1, 5, 0, 0],
- policy=MyHintAnnotatorPolicy())
+ res = self.run(main, [1, 5, 0, 0], threshold=2,
+ policy=MyHintAnnotatorPolicy())
assert "".join(res.chars._obj.items) == "0 1.200000 1.300000"
More information about the Pypy-commit
mailing list