File tree Expand file tree Collapse file tree
Lib/test/test_concurrent_futures Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import unittest
66import sys
77import io
8+ import multiprocessing
89from concurrent .futures ._base import BrokenExecutor
910from concurrent .futures .process import _check_system_limits
1011
@@ -120,8 +121,7 @@ def _assert_logged(self, msg):
120121create_executor_tests (globals (), FailingInitializerMixin )
121122
122123
123- @unittest .skipIf (sys .platform in ("win32" , "cygwin" ),
124- "Resource Tracker doesn't run on Windows" )
124+ @unittest .skipIf (sys .platform == "win32" , "Resource Tracker doesn't run on Windows" )
125125class FailingInitializerResourcesTest (unittest .TestCase ):
126126 """
127127 Source: https://github.com/python/cpython/issues/104090
@@ -148,6 +148,9 @@ def test_spawn(self):
148148 self ._test (ProcessPoolSpawnFailingInitializerTest )
149149
150150 @support .skip_if_sanitizer ("TSAN doesn't support threads after fork" , thread = True )
151+ # Cygwin doesn't have forkserver start method
152+ @unittest .skipIf ('forkserver' not in multiprocessing .get_all_start_methods (),
153+ 'need forkserver start method' )
151154 def test_forkserver (self ):
152155 self ._test (ProcessPoolForkserverFailingInitializerTest )
153156
You can’t perform that action at this time.
0 commit comments