summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_selectors.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2014-03-20 20:43:41 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2014-03-20 20:43:41 (GMT)
commitf97e82937f8a4e14df939007abacfa252ad09fc8 (patch)
treed771b2bbbcbaffcebbdc8988e572bdb7e2fdbcd5 /Lib/test/test_selectors.py
parent5782e25dfe401dddfde091417c977b44e4442cb6 (diff)
downloadcpython-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.py10
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()