Kaydet (Commit) 3bda069c authored tarafından Neal Norwitz's avatar Neal Norwitz

Skip the epoll test if epoll() does not work

üst 162d7191
......@@ -33,6 +33,12 @@ from test import test_support
if not hasattr(select, "epoll"):
raise test_support.TestSkipped("test works only on Linux 2.6")
try:
select.epoll()
except IOError, e:
if e.errno == errno.ENOSYS:
raise test_support.TestSkipped("kernel doesn't support epoll()")
class TestEPoll(unittest.TestCase):
def setUp(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment