Skip to content

Commit ec2543a

Browse files
committed
gh-132969: Incorproate review suggestion to skip test when start_method is "fork" or ("forkserver" and windows)
1 parent 87eb623 commit ec2543a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_concurrent_futures/test_shutdown.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ def _run_test_issue_gh_132969(self, max_workers: int) -> int:
350350
# max_tasks_per_child=1
351351
# a task ends abnormally
352352
# shutdown(wait=False) is called
353+
start_method = self.get_context().get_start_method()
354+
if (start_method == "fork" or
355+
(start_method == "forkserver" and sys.platform.startswith("win"))):
356+
raise unittest.SkipTest("Excluding tests with start_method "
357+
"'fork' and 'forkserver' on Windows")
353358
executor = futures.ProcessPoolExecutor(
354359
max_workers=max_workers,
355360
max_tasks_per_child=1,

0 commit comments

Comments
 (0)