Skip to content

Commit a451d96

Browse files
committed
Enable more more tests on Cygwin
1 parent 8ba561c commit a451d96

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Lib/test/test_concurrent_futures/test_init.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import unittest
66
import sys
77
import io
8+
import multiprocessing
89
from concurrent.futures._base import BrokenExecutor
910
from concurrent.futures.process import _check_system_limits
1011

@@ -120,8 +121,7 @@ def _assert_logged(self, msg):
120121
create_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")
125125
class 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

0 commit comments

Comments
 (0)