summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-07-02 11:32:32 (GMT)
committerGitHub <noreply@github.com>2019-07-02 11:32:32 (GMT)
commit039fb49c185570ab7b02f13fbdc51c859cfd831e (patch)
tree811ed0b75d4efb1c4c52095c391ac0a3f8877787 /Lib
parent61bf97e91620e020939d57a36918ab22579920ff (diff)
downloadcpython-039fb49c185570ab7b02f13fbdc51c859cfd831e.zip
cpython-039fb49c185570ab7b02f13fbdc51c859cfd831e.tar.gz
cpython-039fb49c185570ab7b02f13fbdc51c859cfd831e.tar.bz2
bpo-37421: multiprocessing tests call _run_finalizers() (GH-14527)
multiprocessing tests now call explicitly _run_finalizers() to remove immediately temporary directories created by multiprocessing.util.get_temp_dir().
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/_test_multiprocessing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index eef262d..af5b91d 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -5651,6 +5651,9 @@ def install_tests_in_module_dict(remote_globs, start_method):
if need_sleep:
time.sleep(0.5)
multiprocessing.process._cleanup()
+ # bpo-37421: Explicitly call _run_finalizers() to remove immediately
+ # temporary directories created by multiprocessing.util.get_temp_dir().
+ multiprocessing.util._run_finalizers()
test.support.gc_collect()
remote_globs['setUpModule'] = setUpModule