summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_devpoll.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2014-04-29 16:18:37 (GMT)
committerJesus Cea <jcea@jcea.es>2014-04-29 16:18:37 (GMT)
commitda25109fbca0f7347452b39501a8523d134c7518 (patch)
treed550aaf2384da126a6e12c44be6c1f33f631045d /Lib/test/test_devpoll.py
parenta67b97f438e9c49b8071f3c2b0551dc7a31e0e5c (diff)
downloadcpython-da25109fbca0f7347452b39501a8523d134c7518.zip
cpython-da25109fbca0f7347452b39501a8523d134c7518.tar.gz
cpython-da25109fbca0f7347452b39501a8523d134c7518.tar.bz2
Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris
Diffstat (limited to 'Lib/test/test_devpoll.py')
-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):