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