tests: Clarify skipped Poller test reasons

pull/964/head
Alex Willmer 2 years ago
parent edd2868ef6
commit 7d79c56cb6

@ -394,21 +394,16 @@ class AllMixin(ReceiveStateMixin,
""" """
class SelectTest(AllMixin, testlib.TestCase): class CorePollerTest(AllMixin, testlib.TestCase):
klass = mitogen.core.Poller klass = mitogen.core.Poller
SelectTest = unittest.skipIf(
condition=(not SelectTest.klass.SUPPORTED),
reason='select.select() not supported'
)(SelectTest)
class PollTest(AllMixin, testlib.TestCase): class PollTest(AllMixin, testlib.TestCase):
klass = mitogen.parent.PollPoller klass = mitogen.parent.PollPoller
PollTest = unittest.skipIf( PollTest = unittest.skipIf(
condition=(not PollTest.klass.SUPPORTED), condition=(not PollTest.klass.SUPPORTED),
reason='select.poll() not supported' reason='select.poll() not available',
)(PollTest) )(PollTest)
@ -417,7 +412,7 @@ class KqueueTest(AllMixin, testlib.TestCase):
KqueueTest = unittest.skipIf( KqueueTest = unittest.skipIf(
condition=(not KqueueTest.klass.SUPPORTED), condition=(not KqueueTest.klass.SUPPORTED),
reason='select.kqueue() not supported' reason='select.kqueue() not available',
)(KqueueTest) )(KqueueTest)
@ -426,5 +421,5 @@ class EpollTest(AllMixin, testlib.TestCase):
EpollTest = unittest.skipIf( EpollTest = unittest.skipIf(
condition=(not EpollTest.klass.SUPPORTED), condition=(not EpollTest.klass.SUPPORTED),
reason='select.epoll() not supported' reason='select.epoll() not available',
)(EpollTest) )(EpollTest)

Loading…
Cancel
Save