Commit 03874007 authored by Jason Madden's avatar Jason Madden

Fix tests on windows, where PollSelector may not be defined.

parent d099423c
......@@ -30,10 +30,12 @@ class TestSelectors(greentest.TestCase):
self.assertIn('_gevent_monkey', dir(_select))
@greentest.skipUnless(
hasattr(select, 'poll'),
hasattr(selectors, 'PollSelector'),
"Needs gevent.select.poll"
)
def test_poll_is_default(self):
# Depending on the order of imports, gevent.select.poll may be defined but
# selectors.PollSelector may not be defined.
# https://github.com/gevent/gevent/issues/1466
self.assertIs(selectors.DefaultSelector, selectors.PollSelector)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment