[pypy-svn] r54903 - in pypy/branch/win32port/pypy: config rlib rlib/test
afa at codespeak.net
afa at codespeak.net
Sun May 18 19:48:12 CEST 2008
Author: afa
Date: Sun May 18 19:48:11 2008
New Revision: 54903
Modified:
pypy/branch/win32port/pypy/config/pypyoption.py
pypy/branch/win32port/pypy/rlib/rpoll.py
pypy/branch/win32port/pypy/rlib/test/test_rpoll.py
Log:
'select' is now a working_module on win32.
This one was easy.
Modified: pypy/branch/win32port/pypy/config/pypyoption.py
==============================================================================
--- pypy/branch/win32port/pypy/config/pypyoption.py (original)
+++ pypy/branch/win32port/pypy/config/pypyoption.py Sun May 18 19:48:11 2008
@@ -38,8 +38,6 @@
# modules currently missing explicit windows support
del working_modules["signal"]
del working_modules["_rawffi"]
- # modules with broken windows support
- del working_modules["select"] # MLS - Added 5/11/08 - broken
Modified: pypy/branch/win32port/pypy/rlib/rpoll.py
==============================================================================
--- pypy/branch/win32port/pypy/rlib/rpoll.py (original)
+++ pypy/branch/win32port/pypy/rlib/rpoll.py Sun May 18 19:48:11 2008
@@ -8,6 +8,7 @@
import os
from pypy.rlib import _rsocket_rffi as _c
from pypy.rpython.lltypesystem import lltype, rffi
+from pypy.rlib.rarithmetic import intmask, r_uint
# ____________________________________________________________
# events
@@ -121,7 +122,7 @@
if ret == _c.WSA_WAIT_TIMEOUT:
return []
- if ret == _c.WSA_WAIT_FAILED:
+ if ret == r_uint(_c.WSA_WAIT_FAILED):
raise PollError(_c.geterrno())
retval = []
Modified: pypy/branch/win32port/pypy/rlib/test/test_rpoll.py
==============================================================================
--- pypy/branch/win32port/pypy/rlib/test/test_rpoll.py (original)
+++ pypy/branch/win32port/pypy/rlib/test/test_rpoll.py Sun May 18 19:48:11 2008
@@ -47,3 +47,12 @@
cli.close()
servconn.close()
serv.close()
+
+def test_translate():
+ from pypy.translator.interactive import Translation
+
+ def func():
+ poll({})
+
+ t = Translation(func)
+ fc = t.compile_c([])
More information about the Pypy-commit
mailing list