[pypy-svn] r46499 - in pypy/dist/pypy/translator/jvm: src/pypy test
antocuni at codespeak.net
antocuni at codespeak.net
Wed Sep 12 13:56:00 CEST 2007
Author: antocuni
Date: Wed Sep 12 13:55:57 2007
New Revision: 46499
Modified:
pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java
pypy/dist/pypy/translator/jvm/test/test_builtin.py
Log:
test_os_open_write passes!
Modified: pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java
==============================================================================
--- pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java (original)
+++ pypy/dist/pypy/translator/jvm/src/pypy/ll_os.java Wed Sep 12 13:55:57 2007
@@ -101,7 +101,7 @@
ll_os.throwOSError(PyPy.EBADF, "Cannot write to this fd");
try {
- this.file.writeChars(buffer);
+ this.file.writeBytes(buffer);
}
catch(IOException e) {
ll_os.throwOSError(PyPy.EIO, e.getMessage());
Modified: pypy/dist/pypy/translator/jvm/test/test_builtin.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_builtin.py (original)
+++ pypy/dist/pypy/translator/jvm/test/test_builtin.py Wed Sep 12 13:55:57 2007
@@ -3,13 +3,16 @@
from pypy.translator.oosupport.test_template.builtin import BaseTestBuiltin, BaseTestTime
from pypy.translator.jvm.test.runtest import JvmTest
-class TestJavaBuiltin(JvmTest, BaseTestBuiltin):
+def skip_win():
+ import platform
+ if platform.system() == 'Windows':
+ py.test.skip("Doesn't work on Windows, yet")
- def test_os_open_write(self):
- py.test.skip("ll_os_open is not currently implemented in the Jvm backed")
+class TestJavaBuiltin(JvmTest, BaseTestBuiltin):
def test_os_write_magic(self):
- py.test.skip("ll_os_open is not currently implemented in the Jvm backed")
+ skip_win()
+ BaseTestBuiltin.test_os_write_magic(self)
def test_builtin_math_frexp(self):
py.test.skip("metavm.py needs to be updated to handle this math op; graphless extrernal")
More information about the pypy-svn
mailing list