Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e676244

Browse files
authored
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643)
test_concurrent_futures now explicitly stops the ForkServer instance if it's running.
1 parent 762f93f commit e676244

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_concurrent_futures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,9 @@ def tearDownModule():
13091309

13101310
# cleanup multiprocessing
13111311
multiprocessing.process._cleanup()
1312+
# Stop the ForkServer process if it's running
1313+
from multiprocessing import forkserver
1314+
forkserver._forkserver._stop()
13121315
# bpo-37421: Explicitly call _run_finalizers() to remove immediately
13131316
# temporary directories created by multiprocessing.util.get_temp_dir().
13141317
multiprocessing.util._run_finalizers()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test_concurrent_futures now explicitly stops the ForkServer instance if it's
2+
running.

0 commit comments

Comments
 (0)