diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-08 09:51:49 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-07-08 09:51:49 (GMT) |
commit | cdada40b23b1f7f527797ba7cb14c25820b05981 (patch) | |
tree | d25fdc6475e44d1e825868b69290333cd54a524b /Lib | |
parent | 66905d14672517d50dc8ba516b9839f9ddbcc131 (diff) | |
download | cpython-cdada40b23b1f7f527797ba7cb14c25820b05981.zip cpython-cdada40b23b1f7f527797ba7cb14c25820b05981.tar.gz cpython-cdada40b23b1f7f527797ba7cb14c25820b05981.tar.bz2 |
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645)
test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
(cherry picked from commit e676244235895aeb6ec3b81ca3ccf4a70e487919)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_concurrent_futures.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index fa29820..98c9bc9 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -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() |