Lines Matching refs:ep
70 ep = select.epoll(16)
73 self.assertTrue(ep.fileno() > 0, ep.fileno())
74 self.assertTrue(not ep.closed)
75 ep.close()
76 self.assertTrue(ep.closed)
77 self.assertRaises(ValueError, ep.fileno)
90 ep = select.epoll(2)
92 ep.register(server.fileno(), select.EPOLLIN | select.EPOLLOUT)
93 ep.register(client.fileno(), select.EPOLLIN | select.EPOLLOUT)
95 ep.close()
98 ep = select.epoll(2)
100 ep.register(server, select.EPOLLIN | select.EPOLLOUT)
101 ep.register(client, select.EPOLLIN | select.EPOLLOUT)
103 ep.close()
105 ep = select.epoll(2)
108 self.assertRaises(TypeError, ep.register, object(),
110 self.assertRaises(TypeError, ep.register, None,
113 self.assertRaises(ValueError, ep.register, -1,
116 self.assertRaises(IOError, ep.register, 10000,
119 ep.register(server, select.EPOLLIN | select.EPOLLOUT)
120 self.assertRaises(IOError, ep.register, server,
123 ep.close()
128 ep = select.epoll(2)
129 ep2 = select.epoll.fromfd(ep.fileno())
134 events = ep.poll(1, 4)
139 ep.close()
150 ep = select.epoll(16)
151 ep.register(server.fileno(),
153 ep.register(client.fileno(),
157 events = ep.poll(1, 4)
168 events = ep.poll(timeout=2.1, maxevents=4)
175 events = ep.poll(1, 4)
186 ep.unregister(client.fileno())
187 ep.modify(server.fileno(), select.EPOLLOUT)
189 events = ep.poll(1, 4)
204 ep = select.epoll(16)
205 ep.register(server)
208 events = ep.poll(1, 4)
213 ep.unregister(fd)