Skip to content

Commit 7d79c56

Browse files
committed
tests: Clarify skipped Poller test reasons
1 parent edd2868 commit 7d79c56

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/poller_test.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -394,21 +394,16 @@ class AllMixin(ReceiveStateMixin,
394394
"""
395395

396396

397-
class SelectTest(AllMixin, testlib.TestCase):
397+
class CorePollerTest(AllMixin, testlib.TestCase):
398398
klass = mitogen.core.Poller
399399

400-
SelectTest = unittest.skipIf(
401-
condition=(not SelectTest.klass.SUPPORTED),
402-
reason='select.select() not supported'
403-
)(SelectTest)
404-
405400

406401
class PollTest(AllMixin, testlib.TestCase):
407402
klass = mitogen.parent.PollPoller
408403

409404
PollTest = unittest.skipIf(
410405
condition=(not PollTest.klass.SUPPORTED),
411-
reason='select.poll() not supported'
406+
reason='select.poll() not available',
412407
)(PollTest)
413408

414409

@@ -417,7 +412,7 @@ class KqueueTest(AllMixin, testlib.TestCase):
417412

418413
KqueueTest = unittest.skipIf(
419414
condition=(not KqueueTest.klass.SUPPORTED),
420-
reason='select.kqueue() not supported'
415+
reason='select.kqueue() not available',
421416
)(KqueueTest)
422417

423418

@@ -426,5 +421,5 @@ class EpollTest(AllMixin, testlib.TestCase):
426421

427422
EpollTest = unittest.skipIf(
428423
condition=(not EpollTest.klass.SUPPORTED),
429-
reason='select.epoll() not supported'
424+
reason='select.epoll() not available',
430425
)(EpollTest)

0 commit comments

Comments
 (0)