[pypy-svn] r44982 - in pypy/dist/pypy/translator/jvm: . test

pdg at codespeak.net pdg at codespeak.net
Thu Jul 12 20:14:38 CEST 2007


Author: pdg
Date: Thu Jul 12 20:14:34 2007
New Revision: 44982

Modified:
   pypy/dist/pypy/translator/jvm/generator.py
   pypy/dist/pypy/translator/jvm/test/test_int.py
   pypy/dist/pypy/translator/jvm/test/test_overflow.py
Log:
\translator\jvm - fixed a typo so that all int tests pass (pdg)

Modified: pypy/dist/pypy/translator/jvm/generator.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/generator.py	(original)
+++ pypy/dist/pypy/translator/jvm/generator.py	Thu Jul 12 20:14:34 2007
@@ -369,7 +369,7 @@
 LABSOVF =               Method.s(jPyPy, 'abs_ovf', (jLong,), jLong)
 MATHDABS =              Method.s(jMath, 'abs', (jDouble,), jDouble)
 INEGOVF =               Method.s(jPyPy, 'negate_ovf', (jInt,), jInt)
-LNEGOVF =               Method.s(jPyPy, 'negate_ovf', (jInt,), jInt)
+LNEGOVF =               Method.s(jPyPy, 'negate_ovf', (jLong,), jLong)
 IADDOVF =               Method.s(jPyPy, 'add_ovf', (jInt, jInt), jInt)
 LADDOVF =               Method.s(jPyPy, 'add_ovf', (jLong, jLong), jLong)
 ISUBOVF =               Method.s(jPyPy, 'sub_ovf', (jInt, jInt), jInt)

Modified: pypy/dist/pypy/translator/jvm/test/test_int.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_int.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_int.py	Thu Jul 12 20:14:34 2007
@@ -19,8 +19,4 @@
     def test_rarithmetic(self):
         pass # does this make more sense in jvm
     
-    #There is an issue that it doesn't correctly call long code over int code
-    def test_neg_abs_ovf(self):
-        py.test.skip("Unaware how to handle overflow")
-
     div_mod_iteration_count = 20

Modified: pypy/dist/pypy/translator/jvm/test/test_overflow.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_overflow.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_overflow.py	Thu Jul 12 20:14:34 2007
@@ -1,3 +1,4 @@
+#Why can't I import check?
 #from pypy.translator.jvm.test.runtest import check
 import py
 from pypy.translator.jvm.test.runtest import JvmTest
@@ -14,7 +15,7 @@
 #        return ovfcheck(x+y)
 #    except OverflowError:
 #        return 42
-#
+
 #def op_sub(x, y):
 #    try:
 #        return ovfcheck(x-y)
@@ -45,3 +46,4 @@
 #    yield check, op_mul, [int, int], (sys.maxint/2 + 1, 2)
 #    yield check, op_lshift, [int, int], (2, 30)
 #    yield check, op_neg, [int], (-sys.maxint-1,)
+



More information about the Pypy-commit mailing list