Author: Armin Rigo <[email protected]>
Branch:
Changeset: r73715:6e9694e6d3c9
Date: 2014-09-26 09:24 +0200
http://bitbucket.org/pypy/pypy/changeset/6e9694e6d3c9/
Log: Fix 632cd69be3d3
diff --git a/pypy/module/select/interp_select.py
b/pypy/module/select/interp_select.py
--- a/pypy/module/select/interp_select.py
+++ b/pypy/module/select/interp_select.py
@@ -173,9 +173,9 @@
On Windows, only sockets are supported; on Unix, all file descriptors.
"""
- iwtd_w = space.listview(w_iwtd)
- owtd_w = space.listview(w_owtd)
- ewtd_w = space.listview(w_ewtd)
+ iwtd_w = space.unpackiterable(w_iwtd)
+ owtd_w = space.unpackiterable(w_owtd)
+ ewtd_w = space.unpackiterable(w_ewtd)
if space.is_w(w_timeout, space.w_None):
timeout = -1.0
diff --git a/pypy/module/select/test/test_select.py
b/pypy/module/select/test/test_select.py
--- a/pypy/module/select/test/test_select.py
+++ b/pypy/module/select/test/test_select.py
@@ -254,7 +254,9 @@
return 0
l = [Foo()]
select.select(l, (), (), 0)
- assert map(type, l) == [Foo] * 100
+ assert 1 <= len(l) <= 100
+ # ^^^ CPython gives 100, PyPy gives 1. I think both are OK as
+ # long as there is no crash.
class AppTestSelectWithPipes(_AppTestSelect):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit