diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-03-20 20:43:41 (GMT) |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-03-20 20:43:41 (GMT) |
commit | f97e82937f8a4e14df939007abacfa252ad09fc8 (patch) | |
tree | d771b2bbbcbaffcebbdc8988e572bdb7e2fdbcd5 /Lib/test/test_selectors.py | |
parent | 5782e25dfe401dddfde091417c977b44e4442cb6 (diff) | |
download | cpython-f97e82937f8a4e14df939007abacfa252ad09fc8.zip cpython-f97e82937f8a4e14df939007abacfa252ad09fc8.tar.gz cpython-f97e82937f8a4e14df939007abacfa252ad09fc8.tar.bz2 |
Fix issue 18931: selectors module now supports /dev/poll on Solaris.
Diffstat (limited to 'Lib/test/test_selectors.py')
-rw-r--r-- | Lib/test/test_selectors.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/test/test_selectors.py b/Lib/test/test_selectors.py index 34edd76..8f83c90 100644 --- a/Lib/test/test_selectors.py +++ b/Lib/test/test_selectors.py @@ -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() |