[Python-checkins] cpython (merge 3.4 -> default): MERGE: Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris

jesus.cea python-checkins at python.org
Tue Apr 29 18:19:16 CEST 2014


http://hg.python.org/cpython/rev/825c67196aac
changeset:   90519:825c67196aac
parent:      90516:2b2577d79e80
parent:      90518:cc2345e6e9ff
user:        Jesus Cea <jcea at jcea.es>
date:        Tue Apr 29 18:18:58 2014 +0200
summary:
  MERGE: 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