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:
parent
762f93ff2e
commit
e676244235
|
@ -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()
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
test_concurrent_futures now explicitly stops the ForkServer instance if it's
|
||||
running.
|
Loading…
Reference in New Issue