Skip to content

Commit ed207f0

Browse files
committed
require asyncio for RunToCompletionTest
RunToCompletionTest uses @async_test but did not declare any requirement, so it ran on CI jobs without greenlet installed. On 2.0, the test suite's async runner is only set up when greenlet is present, so these tests failed with AttributeError on all non-greenlet jobs. Add the "asyncio" requirement so they skip when greenlet is not available. Change-Id: Ib22692166087ed862e703f0414f47e89fbf0b915
1 parent 776a3a8 commit ed207f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎test/ext/asyncio/test_cancellation.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ class RunToCompletionTest(fixtures.TestBase):
208208
"""cleanup run by _run_to_completion() is waited for even when the
209209
calling task is cancelled. #12710"""
210210

211+
__requires__ = ("asyncio",)
212+
211213
async def _run(self, number_of_cancels):
212214
started = asyncio.Event()
213215
release = asyncio.Event()

0 commit comments

Comments
 (0)