diff options
author | Jesus Cea <jcea@jcea.es> | 2014-04-29 16:18:58 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2014-04-29 16:18:58 (GMT) |
commit | ae43046b614439234de596ddad9d6d07b15092aa (patch) | |
tree | f7549f4b467b396a0bbd3120361e6b6a4688005a | |
parent | e83ce4b90f02690928248451cc1de166a6e052ad (diff) | |
parent | da25109fbca0f7347452b39501a8523d134c7518 (diff) | |
download | cpython-ae43046b614439234de596ddad9d6d07b15092aa.zip cpython-ae43046b614439234de596ddad9d6d07b15092aa.tar.gz cpython-ae43046b614439234de596ddad9d6d07b15092aa.tar.bz2 |
MERGE: Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris
-rw-r--r-- | Lib/test/test_devpoll.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_devpoll.py b/Lib/test/test_devpoll.py index e634d3a..955618a 100644 --- a/Lib/test/test_devpoll.py +++ b/Lib/test/test_devpoll.py @@ -9,10 +9,8 @@ import sys import unittest from test.support import TESTFN, run_unittest, cpython_only -try: - select.devpoll -except AttributeError: - raise unittest.SkipTest("select.devpoll not defined") +if not hasattr(select, 'devpoll') : + raise unittest.SkipTest('test works only on Solaris OS family') def find_ready_matching(ready, flag): |