[Python-checkins] bpo-37421: test_concurrent_futures stops ForkServer (GH-14643)
Victor Stinner
webhook-mailer at python.org
Mon Jul 8 04:49:19 EDT 2019
https://github.com/python/cpython/commit/e676244235895aeb6ec3b81ca3ccf4a70e487919
commit: e676244235895aeb6ec3b81ca3ccf4a70e487919
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2019-07-08T10:49:11+02:00
summary:
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643)
test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
files:
A Misc/NEWS.d/next/Tests/2019-07-08-10-11-36.bpo-37421.OY77go.rst
M Lib/test/test_concurrent_futures.py
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index c782d4c6e881..ff9a49380340 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()
diff --git a/Misc/NEWS.d/next/Tests/2019-07-08-10-11-36.bpo-37421.OY77go.rst b/Misc/NEWS.d/next/Tests/2019-07-08-10-11-36.bpo-37421.OY77go.rst
new file mode 100644
index 000000000000..0766d70f6eda
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-07-08-10-11-36.bpo-37421.OY77go.rst
@@ -0,0 +1,2 @@
+test_concurrent_futures now explicitly stops the ForkServer instance if it's
+running.
More information about the Python-checkins
mailing list