mirror of https://github.com/python/cpython
Skip the epoll test if epoll() does not work
This commit is contained in:
parent
162d719113
commit
3bda069c5a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue