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

niko at codespeak.net niko at codespeak.net
Wed Nov 1 15:01:59 CET 2006


Author: niko
Date: Wed Nov  1 15:01:58 2006
New Revision: 34025

Modified:
   pypy/dist/pypy/translator/jvm/genjvm.py
   pypy/dist/pypy/translator/jvm/test/test_bool.py
Log:
change stderr for executing generated code so that it is not hidden



Modified: pypy/dist/pypy/translator/jvm/genjvm.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/genjvm.py	(original)
+++ pypy/dist/pypy/translator/jvm/genjvm.py	Wed Nov  1 15:01:58 2006
@@ -86,7 +86,7 @@
         res = subp.wait()
         if res or (not allow_stderr and stderr):
             raise JvmSubprogramError(res, args, stdout, stderr)
-        return stdout
+        return stdout, stderr
 
     def compile(self):
         """
@@ -125,7 +125,9 @@
                '-cp',
                str(self.javadir),
                self.package+".Main"] + strargs
-        return self._invoke(cmd, True)
+        stdout, stderr = self._invoke(cmd, True)
+        sys.stderr.write(stderr)
+        return stdout
         
 def generate_source_for_function(func, annotation):
     

Modified: pypy/dist/pypy/translator/jvm/test/test_bool.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_bool.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_bool.py	Wed Nov  1 15:01:58 2006
@@ -2,6 +2,6 @@
 from pypy.translator.jvm.test.runtest import JvmTest
 from pypy.rpython.test.test_rbool import BaseTestRbool
 
-#class TestJvmBool(JvmTest, BaseTestRbool):
-#    pass
+class TestJvmBool(JvmTest, BaseTestRbool):
+    pass
 



More information about the Pypy-commit mailing list