summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-07-08 08:49:11 (GMT)
committerGitHub <noreply@github.com>2019-07-08 08:49:11 (GMT)
commite676244235895aeb6ec3b81ca3ccf4a70e487919 (patch)
treee290d466326962c3960b0f2c0d2e124de9aec31f /Lib
parent762f93ff2efd6b7ef0177cad57939c0ab2002eac (diff)
downloadcpython-e676244235895aeb6ec3b81ca3ccf4a70e487919.zip
cpython-e676244235895aeb6ec3b81ca3ccf4a70e487919.tar.gz
cpython-e676244235895aeb6ec3b81ca3ccf4a70e487919.tar.bz2
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643)
test_concurrent_futures now explicitly stops the ForkServer instance if it's running.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_concurrent_futures.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index c782d4c..ff9a493 100644
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -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()