Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da25109

Browse files
committed
Closes issue #21316: mark test_devpoll to be meaningfull only for Solaris
1 parent a67b97f commit da25109

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/test/test_devpoll.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import unittest
1010
from test.support import TESTFN, run_unittest, cpython_only
1111

12-
try:
13-
select.devpoll
14-
except AttributeError:
15-
raise unittest.SkipTest("select.devpoll not defined")
12+
if not hasattr(select, 'devpoll') :
13+
raise unittest.SkipTest('test works only on Solaris OS family')
1614

1715

1816
def find_ready_matching(ready, flag):

0 commit comments

Comments
 (0)