Skip to content

Commit c6457c3

Browse files
committed
gh-132969: Run gh-132969 tests only with "spawn" mp_context
1 parent b060786 commit c6457c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_concurrent_futures/test_shutdown.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,8 @@ def _run_test_issue_gh_132969(self, max_workers: int) -> int:
348348
# a task ends abnormally
349349
# shutdown(wait=False) is called
350350
start_method = self.get_context().get_start_method()
351-
if (start_method == "fork" or
352-
(start_method == "forkserver" and sys.platform.startswith("win"))):
353-
self.skipTest(f"Excluding test with {start_method}=")
351+
if start_method != ProcessPoolSpawnMixin.ctx:
352+
self.skipTest(f"Skipping test for {start_method}=")
354353
executor = futures.ProcessPoolExecutor(
355354
max_workers=max_workers,
356355
max_tasks_per_child=1,

0 commit comments

Comments
 (0)