From a952102f76db40995142a8c10eb54d5b7f074ebc Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 6 Mar 2026 11:18:26 +0100 Subject: [PATCH 1/2] Skip flaky windows tests --- Lib/test/test_importlib/test_abc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_importlib/test_abc.py b/Lib/test/test_importlib/test_abc.py index dd943210ffc..e0da81bda3b 100644 --- a/Lib/test/test_importlib/test_abc.py +++ b/Lib/test/test_importlib/test_abc.py @@ -358,6 +358,7 @@ def is_package(self, fullname): return SpecLoader() + @unittest.skipIf(sys.platform == "win32", "TODO: RUSTPYTHON; Flaky on CI") def test_fresh(self): with warnings.catch_warnings(): warnings.simplefilter("ignore", DeprecationWarning) @@ -375,6 +376,7 @@ def test_fresh(self): self.assertIsNotNone(module.__path__, module.__spec__.submodule_search_locations) + @unittest.skipIf(sys.platform == "win32", "TODO: RUSTPYTHON; Flaky on CI") def test_reload(self): with warnings.catch_warnings(): warnings.simplefilter("ignore", DeprecationWarning) From d81a028f8810c8e8c2eb994924b1447dc69c6d98 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 6 Mar 2026 13:28:21 +0100 Subject: [PATCH 2/2] Skip flaky tests --- Lib/test/_test_multiprocessing.py | 1 + Lib/test/test_asyncio/test_sendfile.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 894cebda57b..5e490ed8633 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -3303,6 +3303,7 @@ def _putter(cls, address, authkey): queue = manager.get_queue() queue.put('hello world') + @unittest.skipIf(sys.platform == "linux", "TODO: RUSTPYTHON; Flaky on CI") def test_rapid_restart(self): authkey = os.urandom(32) manager = QueueManager( diff --git a/Lib/test/test_asyncio/test_sendfile.py b/Lib/test/test_asyncio/test_sendfile.py index dcd963b3355..fa90e89890a 100644 --- a/Lib/test/test_asyncio/test_sendfile.py +++ b/Lib/test/test_asyncio/test_sendfile.py @@ -441,6 +441,7 @@ def test_sendfile_close_peer_after_receiving(self): self.assertEqual(srv_proto.data, self.DATA) self.assertEqual(self.file.tell(), len(self.DATA)) + @unittest.skipIf(sys.platform == "linux", "TODO: RUSTPYTHON; Flaky on CI") def test_sendfile_ssl_close_peer_after_receiving(self): srv_proto, cli_proto = self.prepare_sendfile( is_ssl=True, close_after=len(self.DATA))