[pypy-svn] r64321 - in pypy/trunk: lib-python pypy/lib

afa at codespeak.net afa at codespeak.net
Sat Apr 18 01:14:52 CEST 2009


Author: afa
Date: Sat Apr 18 01:14:52 2009
New Revision: 64321

Modified:
   pypy/trunk/lib-python/win32-failures.txt
   pypy/trunk/pypy/lib/msvcrt.py
Log:
Add msvcrt.setmode, this should help some tests in test_subprocess


Modified: pypy/trunk/lib-python/win32-failures.txt
==============================================================================
--- pypy/trunk/lib-python/win32-failures.txt	(original)
+++ pypy/trunk/lib-python/win32-failures.txt	Sat Apr 18 01:14:52 2009
@@ -1,6 +1,6 @@
 These tests currently fail on win32:
 
-test_cmd_line
+test_cmd_line       TODO: implement os.popen4
 test_file
 test_hashlib
 test_hmac

Modified: pypy/trunk/pypy/lib/msvcrt.py
==============================================================================
--- pypy/trunk/pypy/lib/msvcrt.py	(original)
+++ pypy/trunk/pypy/lib/msvcrt.py	Sat Apr 18 01:14:52 2009
@@ -17,4 +17,8 @@
 get_osfhandle.argtypes = [ctypes.c_int]
 get_osfhandle.restype = ctypes.c_int
 
+setmode = _c._setmode
+setmode.argtypes = [ctypes.c_int, ctypes.c_int]
+setmode.restype = ctypes.c_int
+
 del ctypes



More information about the Pypy-commit mailing list