mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
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 e676244235
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
This commit is contained in:
parent
66905d1467
commit
cdada40b23
2 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
test_concurrent_futures now explicitly stops the ForkServer instance if it's
|
||||
running.
|
Loading…
Add table
Add a link
Reference in a new issue