Skip to content

Commit

Permalink
bpo-37421: test_concurrent_futures stops ForkServer (pythonGH-14643)
Browse files Browse the repository at this point in the history
test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
  • Loading branch information
vstinner authored Jul 8, 2019
1 parent 762f93f commit e676244
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_concurrent_futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,9 @@ def tearDownModule():

# cleanup multiprocessing
multiprocessing.process._cleanup()
# Stop the ForkServer process if it's running
from multiprocessing import forkserver
forkserver._forkserver._stop()
# bpo-37421: Explicitly call _run_finalizers() to remove immediately
# temporary directories created by multiprocessing.util.get_temp_dir().
multiprocessing.util._run_finalizers()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test_concurrent_futures now explicitly stops the ForkServer instance if it's
running.

0 comments on commit e676244

Please sign in to comment.