From 65dee6c55cda8606be7dcdca7ed1f95ed2773bbc Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Thu, 11 Jun 2026 12:45:34 +0300 Subject: [PATCH] Skip flaky asyncio tests (#8075) * Skip flaky test on windows * Skip another flaky test --- Lib/test/test_asyncio/test_events.py | 1 + Lib/test/test_asyncio/test_subprocess.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index b60c7452f..3d6d1825a 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -791,6 +791,7 @@ class EventLoopTestsMixin: self.assertEqual(port, expected) tr.close() + @unittest.skipIf(sys.platform == "linux", "TODO: Flaky on CI") @socket_helper.skip_if_tcp_blackhole def test_create_connection_local_addr_skip_different_family(self): # See https://github.com/python/cpython/issues/86508 diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index c08eb7cf2..9dd596bbf 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -628,6 +628,7 @@ class SubprocessMixin: self.assertTrue(killed) test_utils.run_briefly(self.loop) + @unittest.skipIf(sys.platform == "win32", "TODO: RUSTPYTHON; Flaky on CI") def test_close_dont_kill_finished(self): async def kill_running():