[Python-checkins] cpython (3.4): Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris
jesus.cea
python-checkins at python.org
Tue Apr 29 18:19:15 CEST 2014
http://hg.python.org/cpython/rev/cc2345e6e9ff
changeset: 90518:cc2345e6e9ff
branch: 3.4
parent: 90515:a172f26195f6
user: Jesus Cea <jcea at jcea.es>
date: Tue Apr 29 18:18:37 2014 +0200
summary:
Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris
files:
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
--- a/Lib/test/test_devpoll.py
+++ b/Lib/test/test_devpoll.py
@@ -9,10 +9,8 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list