From e48d1aa2ac2147f97ccda63cbaea239e2e71ddd3 Mon Sep 17 00:00:00 2001 From: Fantix King Date: Sun, 11 Jan 2026 19:57:38 -0500 Subject: [PATCH] test: skip flaky test_cancel_post_init on AIO 3.13+ --- tests/test_process.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_process.py b/tests/test_process.py index bfcbba17..45036256 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -685,6 +685,12 @@ async def cancel_make_transport(): self.loop.run_until_complete(cancel_make_transport()) def test_cancel_post_init(self): + if sys.version_info >= (3, 13) and self.implementation == 'asyncio': + # https://github.com/python/cpython/issues/103847#issuecomment-3736561321 + # This test started to flake on CPython 3.13 and later, + # so we skip it for asyncio tests until the issue is resolved. + self.skipTest('flaky test on CPython 3.13+') + async def cancel_make_transport(): coro = self.loop.subprocess_exec(asyncio.SubprocessProtocol, *self.PROGRAM_BLOCKED)