Home | History | Annotate | Download | only in test

Lines Matching defs:select

3 import os, select, random, unittest
8 select.poll
10 raise unittest.SkipTest, "select.poll not defined -- skipping test_poll"
26 p = select.poll()
39 p.modify(rd, select.POLLIN)
40 p.register(wr, select.POLLOUT)
50 ready_writers = find_ready_matching(ready, select.POLLOUT)
57 ready_readers = find_ready_matching(ready, select.POLLIN)
78 p = select.poll()
81 self.assertEqual(r[0], (FD, select.POLLNVAL))
85 p = select.poll()
91 self.assertEqual(r[0], (fd, select.POLLNVAL))
95 p = select.poll()
100 p = select.poll()
104 pollster = select.poll()
116 # select(), modified to use poll() instead.
121 pollster = select.poll()
122 pollster.register( p, select.POLLIN )
128 if flags & select.POLLHUP:
134 elif flags & select.POLLIN:
140 self.fail('Unexpected return value from select.poll: %s' % fdlist)
145 pollster = select.poll()
154 pollster = select.poll()