]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-154272: Skip more forkserver tests if the start method is unavailable ...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 22 Jul 2026 23:03:25 +0000 (02:03 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 23:03:25 +0000 (23:03 +0000)
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 <noreply@anthropic.com>
Lib/test/test_concurrent_futures/test_init.py

index 6b8484c0d5f197a94b63c83b2338c337593d7e74..3a12dfe2c74d5d82710a7c53f564e3c162e620a2 100644 (file)
@@ -1,5 +1,6 @@
 import contextlib
 import logging
+import multiprocessing
 import queue
 import time
 import unittest
@@ -144,6 +145,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)