From: Jesus Cea Date: Tue, 29 Apr 2014 16:18:37 +0000 (+0200) Subject: Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris X-Git-Tag: v3.4.1rc1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da25109fbca0f7347452b39501a8523d134c7518;p=thirdparty%2FPython%2Fcpython.git Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris --- diff --git a/Lib/test/test_devpoll.py b/Lib/test/test_devpoll.py index e634d3a3733b..955618ae1557 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):