From b51729a7ce49eac52fc7e33ca9697e4b6ba1d18a Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 23 Jul 2026 01:46:08 +0300 Subject: [PATCH] [3.13] gh-154272: Skip more forkserver tests if the start method is unavailable (GH-154499) (GH-154507) Two tests were still not skipped: they were only guarded against Cygwin and Windows. (cherry picked from commit a2a846678e54b1b5defdccd451c573679094ff02) Co-authored-by: Claude Opus 4.8 --- Lib/test/test_concurrent_futures/test_init.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_concurrent_futures/test_init.py b/Lib/test/test_concurrent_futures/test_init.py index df6409293093..eff87b03b452 100644 --- a/Lib/test/test_concurrent_futures/test_init.py +++ b/Lib/test/test_concurrent_futures/test_init.py @@ -1,5 +1,6 @@ import contextlib import logging +import multiprocessing import queue import time import unittest @@ -140,6 +141,8 @@ class FailingInitializerResourcesTest(unittest.TestCase): self._test(ProcessPoolSpawnFailingInitializerTest) @support.skip_if_sanitizer("TSAN doesn't support threads after fork", thread=True) + @unittest.skipUnless("forkserver" in multiprocessing.get_all_start_methods(), + "forkserver start method is not available") def test_forkserver(self): self._test(ProcessPoolForkserverFailingInitializerTest) -- 2.47.3