Author: Brian Kearns <[email protected]>
Branch:
Changeset: r61985:2cb26f938ad8
Date: 2013-03-03 21:30 -0500
http://bitbucket.org/pypy/pypy/changeset/2cb26f938ad8/
Log: this test is really the same as the previous, merge
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
@@ -193,29 +193,12 @@
readend, writeend = self.getpair()
readend.close()
try:
- iwtd, owtd, ewtd = select.select([], [writeend], [])
- assert owtd == [writeend]
- assert iwtd == ewtd == []
+ iwtd, owtd, ewtd = select.select([writeend], [writeend],
[writeend])
+ assert iwtd == owtd == [writeend]
+ assert ewtd == []
finally:
writeend.close()
- def test_select_bug(self):
- import select, os
- if not hasattr(os, 'fork'):
- skip("no fork() on this platform")
- read, write = os.pipe()
- pid = os.fork()
- if pid == 0:
- os._exit(0)
- else:
- os.close(read)
- os.waitpid(pid, 0)
- res = select.select([write], [write], [write])
- assert len(res[0]) == 1
- assert len(res[1]) == 1
- assert len(res[2]) == 0
- assert res[0][0] == res[1][0]
-
def test_poll(self):
import select
if not hasattr(select, 'poll'):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit