[pypy-svn] r51759 - pypy/branch/jit-refactoring/pypy/jit/timeshifter/test

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Feb 21 21:28:06 CET 2008


Author: cfbolz
Date: Thu Feb 21 21:28:04 2008
New Revision: 51759

Modified:
   pypy/branch/jit-refactoring/pypy/jit/timeshifter/test/test_portal.py
Log:
kill tests that were already moved over to the rainbow interp


Modified: pypy/branch/jit-refactoring/pypy/jit/timeshifter/test/test_portal.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/timeshifter/test/test_portal.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/timeshifter/test/test_portal.py	Thu Feb 21 21:28:04 2008
@@ -142,52 +142,6 @@
         
 class TestPortal(PortalTest):
             
-    def test_simple(self):
-
-        def main(code, x):
-            return evaluate(code, x)
-
-        def evaluate(y, x):
-            hint(y, concrete=True)
-            z = y+x
-            return z
-
-        res = self.timeshift_from_portal(main, evaluate, [3, 2])
-        assert res == 5
-
-        res = self.timeshift_from_portal(main, evaluate, [3, 5])
-        assert res == 8
-
-        res = self.timeshift_from_portal(main, evaluate, [4, 7])
-        assert res == 11
-    
-    def test_main_as_portal(self):
-        def main(x):
-            return x
-
-        res = self.timeshift_from_portal(main, main, [42])
-        assert res == 42
-
-    def test_multiple_portal_calls(self):
-        def ll_function(n):
-            hint(None, global_merge_point=True)
-            k = n
-            if k > 5:
-                k //= 2
-            k = hint(k, promote=True)
-            k *= 17
-            return hint(k, variable=True)
-
-        res = self.timeshift_from_portal(ll_function, ll_function, [4],
-                                         policy=P_NOVIRTUAL)
-        assert res == 68
-        self.check_insns(int_floordiv=1, int_mul=0)
-
-        res = self.timeshift_from_portal(ll_function, ll_function, [4],
-                                         policy=P_NOVIRTUAL)
-        assert res == 68
-        self.check_insns(int_floordiv=1, int_mul=0)
-
     def test_dfa_compile(self):
         from pypy.lang.automata.dfa import getautomaton, convertdfa, recognizetable
         a = getautomaton()



More information about the Pypy-commit mailing list