bpo-37421: test_concurrent_futures stops ForkServer (GH-14643)

test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
This commit is contained in:
Victor Stinner 2019-07-08 10:49:11 +02:00 committed by GitHub
parent 762f93ff2e
commit e676244235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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()

View File

@ -0,0 +1,2 @@
test_concurrent_futures now explicitly stops the ForkServer instance if it's
running.