summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_poll.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-03-21 23:49:44 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-03-21 23:49:44 (GMT)
commit0e9ab5f2f0f907b57c70557e21633ce8c341d1d1 (patch)
treecff563d889c8bca44a7214739706e3674d402d26 /Lib/test/test_poll.py
parent5f79446af07b8bd7821ca4aacc96895c811f2733 (diff)
downloadcpython-0e9ab5f2f0f907b57c70557e21633ce8c341d1d1.zip
cpython-0e9ab5f2f0f907b57c70557e21633ce8c341d1d1.tar.gz
cpython-0e9ab5f2f0f907b57c70557e21633ce8c341d1d1.tar.bz2
Applied patch #1657 epoll and kqueue wrappers for the select module
The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help. TODO: Finish documentation documentation
Diffstat (limited to 'Lib/test/test_poll.py')
-rw-r--r--Lib/test/test_poll.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_poll.py b/Lib/test/test_poll.py
index 5dbfc2c..fb6cd30 100644
--- a/Lib/test/test_poll.py
+++ b/Lib/test/test_poll.py
@@ -34,7 +34,8 @@ class PollTests(unittest.TestCase):
for i in range(NUM_PIPES):
rd, wr = os.pipe()
- p.register(rd, select.POLLIN)
+ p.register(rd)
+ p.modify(rd, select.POLLIN)
p.register(wr, select.POLLOUT)
readers.append(rd)
writers.append(wr)