[pypy-svn] r72592 - pypy/trunk/pypy/translator/jvm/test

arigo at codespeak.net arigo at codespeak.net
Mon Mar 22 20:22:16 CET 2010


Author: arigo
Date: Mon Mar 22 20:22:15 2010
New Revision: 72592

Modified:
   pypy/trunk/pypy/translator/jvm/test/test_backendopt.py
   pypy/trunk/pypy/translator/jvm/test/test_rarithmetic.py
Log:
Add two missing skips.  Note that we can figure out if there
are enough of them by running "py.test --javac=foobar", but
I'm a bit unsure about whether to write that in a test...


Modified: pypy/trunk/pypy/translator/jvm/test/test_backendopt.py
==============================================================================
--- pypy/trunk/pypy/translator/jvm/test/test_backendopt.py	(original)
+++ pypy/trunk/pypy/translator/jvm/test/test_backendopt.py	Mon Mar 22 20:22:15 2010
@@ -1,9 +1,11 @@
 import py
 from pypy.translator.jvm.test.runtest import JvmTest
+from pypy.translator.jvm.genjvm import detect_missing_support_programs
 from pypy.translator.oosupport.test_template.backendopt import BaseTestOptimizedSwitch
 
 class TestOptimizedSwitch(BaseTestOptimizedSwitch):
     def getcompiled(self, fn, annotation):
+        detect_missing_support_programs()
         t = JvmTest()
         return t.compile(fn, None, annotation, backendopt=True)
 

Modified: pypy/trunk/pypy/translator/jvm/test/test_rarithmetic.py
==============================================================================
--- pypy/trunk/pypy/translator/jvm/test/test_rarithmetic.py	(original)
+++ pypy/trunk/pypy/translator/jvm/test/test_rarithmetic.py	Mon Mar 22 20:22:15 2010
@@ -1,5 +1,6 @@
 import py
 from pypy.translator.jvm.test.runtest import JvmTest
+from pypy.translator.jvm.genjvm import detect_missing_support_programs
 from pypy.rlib.test.test_rarithmetic import Test_r_uint as BaseTest_r_uint
 from pypy.rlib.test.test_rarithmetic import Test_r_int as BaseTest_r_int
 from pypy.rlib.test.test_rarithmetic import test_ovfcheck as base_test_ovfcheck
@@ -8,6 +9,7 @@
 class BaseAdaptedTest(JvmTest):
     
     def unary_test(self, f):
+        detect_missing_support_programs()
         cache = {}
         def new_func(x):
             xtype = type(x)
@@ -20,6 +22,7 @@
         super(BaseAdaptedTest,self).unary_test(new_func)    
         
     def binary_test(self, f, rargs = None):
+        detect_missing_support_programs()
         cache = {}
         def new_func(x, y):
             if type(x) == self.RTYPE or type(y) == self.RTYPE:



More information about the Pypy-commit mailing list