summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_epoll.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_epoll.py')
-rw-r--r--Lib/test/test_epoll.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_epoll.py b/Lib/test/test_epoll.py
index 877a54e..1e30d61 100644
--- a/Lib/test/test_epoll.py
+++ b/Lib/test/test_epoll.py
@@ -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 as e:
+ if e.errno == errno.ENOSYS:
+ raise test_support.TestSkipped("kernel doesn't support epoll()")
+
class TestEPoll(unittest.TestCase):
def setUp(self):