Skip to content

Commit

Permalink
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645
Browse files Browse the repository at this point in the history
)

test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
(cherry picked from commit e676244)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
  • Loading branch information
miss-islington and vstinner committed Jul 8, 2019
1 parent 66905d1 commit cdada40
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
Expand Up @@ -1310,6 +1310,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
@@ -0,0 +1,2 @@
test_concurrent_futures now explicitly stops the ForkServer instance if it's
running.

0 comments on commit cdada40

Please sign in to comment.