Home | History | Annotate | Download | only in test

Lines Matching refs:poll

1 # Test case for the os.poll() function
8 select.poll
10 raise unittest.SkipTest, "select.poll not defined -- skipping test_poll"
23 # Basic functional test of poll object
24 # Create a bunch of pipe and test that poll works with them.
26 p = select.poll()
49 ready = p.poll()
56 ready = p.poll()
78 p = select.poll()
80 r = p.poll()
85 p = select.poll()
87 r = p.poll()
90 r = p.poll()
95 p = select.poll()
100 p = select.poll()
104 pollster = select.poll()
115 # Another test case for poll(). This is copied from the test case for
116 # select(), modified to use poll() instead.
121 pollster = select.poll()
124 fdlist = pollster.poll(tout)
140 self.fail('Unexpected return value from select.poll: %s' % fdlist)
145 pollster = select.poll()
148 self.assertRaises(OverflowError, pollster.poll, 1L << 64)
154 pollster = select.poll()
160 self.assertRaises(OverflowError, pollster.poll, _testcapi.INT_MAX + 1)
161 self.assertRaises(OverflowError, pollster.poll, _testcapi.UINT_MAX + 1)