summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2014-04-29 16:18:58 (GMT)
committerJesus Cea <jcea@jcea.es>2014-04-29 16:18:58 (GMT)
commitae43046b614439234de596ddad9d6d07b15092aa (patch)
treef7549f4b467b396a0bbd3120361e6b6a4688005a
parente83ce4b90f02690928248451cc1de166a6e052ad (diff)
parentda25109fbca0f7347452b39501a8523d134c7518 (diff)
downloadcpython-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.py6
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):