From 7d79c56cb6ca95bbb141a112c00422d72063f8b4 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 12 Sep 2022 19:25:41 +0100 Subject: [PATCH] tests: Clarify skipped Poller test reasons --- tests/poller_test.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/poller_test.py b/tests/poller_test.py index 2b0ded51..f915df0a 100644 --- a/tests/poller_test.py +++ b/tests/poller_test.py @@ -394,21 +394,16 @@ class AllMixin(ReceiveStateMixin, """ -class SelectTest(AllMixin, testlib.TestCase): +class CorePollerTest(AllMixin, testlib.TestCase): klass = mitogen.core.Poller -SelectTest = unittest.skipIf( - condition=(not SelectTest.klass.SUPPORTED), - reason='select.select() not supported' -)(SelectTest) - class PollTest(AllMixin, testlib.TestCase): klass = mitogen.parent.PollPoller PollTest = unittest.skipIf( condition=(not PollTest.klass.SUPPORTED), - reason='select.poll() not supported' + reason='select.poll() not available', )(PollTest) @@ -417,7 +412,7 @@ class KqueueTest(AllMixin, testlib.TestCase): KqueueTest = unittest.skipIf( condition=(not KqueueTest.klass.SUPPORTED), - reason='select.kqueue() not supported' + reason='select.kqueue() not available', )(KqueueTest) @@ -426,5 +421,5 @@ class EpollTest(AllMixin, testlib.TestCase): EpollTest = unittest.skipIf( condition=(not EpollTest.klass.SUPPORTED), - reason='select.epoll() not supported' + reason='select.epoll() not available', )(EpollTest)