diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-23 04:43:09 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-23 04:43:09 +0000 |
commit | 3bda069c5ab3a172c46f5f81b972a7e05161196a (patch) | |
tree | 6d329382f4e5d7fb2fc98fb9f80d836231cf5b90 /Lib/test/test_epoll.py | |
parent | 162d719113d4b2d76e1fdf9e10ec2dd965152554 (diff) | |
download | cpython-git-3bda069c5ab3a172c46f5f81b972a7e05161196a.tar.gz |
Skip the epoll test if epoll() does not work
Diffstat (limited to 'Lib/test/test_epoll.py')
-rw-r--r-- | Lib/test/test_epoll.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_epoll.py b/Lib/test/test_epoll.py index f56d74f095..ab1756cde5 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, e: + if e.errno == errno.ENOSYS: + raise test_support.TestSkipped("kernel doesn't support epoll()") + class TestEPoll(unittest.TestCase): def setUp(self): |