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>
import contextlib
import logging
+import multiprocessing
import queue
import time
import unittest
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)