mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix issue 18931: selectors module now supports /dev/poll on Solaris.
This commit is contained in:
parent
5782e25dfe
commit
f97e82937f
4 changed files with 84 additions and 2 deletions
|
@ -441,10 +441,18 @@ class KqueueSelectorTestCase(BaseSelectorTestCase, ScalableSelectorMixIn):
|
|||
SELECTOR = getattr(selectors, 'KqueueSelector', None)
|
||||
|
||||
|
||||
@unittest.skipUnless(hasattr(selectors, 'DevpollSelector'),
|
||||
"Test needs selectors.DevpollSelector")
|
||||
class DevpollSelectorTestCase(BaseSelectorTestCase, ScalableSelectorMixIn):
|
||||
|
||||
SELECTOR = getattr(selectors, 'DevpollSelector', None)
|
||||
|
||||
|
||||
|
||||
def test_main():
|
||||
tests = [DefaultSelectorTestCase, SelectSelectorTestCase,
|
||||
PollSelectorTestCase, EpollSelectorTestCase,
|
||||
KqueueSelectorTestCase]
|
||||
KqueueSelectorTestCase, DevpollSelectorTestCase]
|
||||
support.run_unittest(*tests)
|
||||
support.reap_children()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue