Skip to content

Commit 192e1fd

Browse files
committed
gh-149879: Fix test_concurrent_futures on Cygwin
On Cygwin, skip tests using "forkserver" start method.
1 parent 08afe29 commit 192e1fd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_concurrent_futures/test_init.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def test_spawn(self):
147147
self._test(ProcessPoolSpawnFailingInitializerTest)
148148

149149
@support.skip_if_sanitizer("TSAN doesn't support threads after fork", thread=True)
150+
@unittest.skipIf(sys.platform == "cygwin",
151+
"Forkserver is not available on Cygwin")
150152
def test_forkserver(self):
151153
self._test(ProcessPoolForkserverFailingInitializerTest)
152154

Lib/test/test_concurrent_futures/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def get_context(self):
135135
_check_system_limits()
136136
except NotImplementedError:
137137
self.skipTest("ProcessPoolExecutor unavailable on this system")
138-
if sys.platform == "win32":
138+
if sys.platform in ("win32", "cygwin"):
139139
self.skipTest("require unix system")
140140
if support.check_sanitizer(thread=True):
141141
self.skipTest("TSAN doesn't support threads after fork")

0 commit comments

Comments
 (0)