[pypy-svn] r64585 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test

antocuni at codespeak.net antocuni at codespeak.net
Thu Apr 23 10:47:17 CEST 2009


Author: antocuni
Date: Thu Apr 23 10:47:16 2009
New Revision: 64585

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_warmspot.py
Log:
port test_warmspot to ootype


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_warmspot.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_warmspot.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_warmspot.py	Thu Apr 23 10:47:16 2009
@@ -10,7 +10,9 @@
 class WarmspotTests(object):
     def meta_interp(self, *args, **kwds):
         assert 'CPUClass' not in kwds
+        assert 'type_system' not in kwds
         kwds['CPUClass'] = self.CPUClass
+        kwds['type_system'] = self.type_system
         return ll_meta_interp(*args, **kwds)
     
     def test_basic(self):
@@ -79,3 +81,8 @@
 
 class TestLLWarmspot(WarmspotTests):
     CPUClass = runner.LLtypeCPU
+    type_system = 'lltype'
+
+class TestOOWarmspot(WarmspotTests):
+    CPUClass = runner.OOtypeCPU
+    type_system = 'ootype'



More information about the Pypy-commit mailing list