[Python-checkins] bpo-31160: regrtest now reaps child processes (#3044)
Victor Stinner
webhook-mailer at python.org
Wed Aug 9 11:44:36 EDT 2017
https://github.com/python/cpython/commit/e3510d74aacc477c30f42f2b941d69689bbc478e
commit: e3510d74aacc477c30f42f2b941d69689bbc478e
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-08-09T17:44:33+02:00
summary:
bpo-31160: regrtest now reaps child processes (#3044)
Add a post_test_cleanup() function which currently only calls
support.reap_children().
files:
M Lib/test/libregrtest/runtest.py
diff --git a/Lib/test/libregrtest/runtest.py b/Lib/test/libregrtest/runtest.py
index 0210409817b..dbd463435c7 100644
--- a/Lib/test/libregrtest/runtest.py
+++ b/Lib/test/libregrtest/runtest.py
@@ -146,6 +146,10 @@ def runtest(ns, test):
runtest.stringio = None
+def post_test_cleanup():
+ support.reap_children()
+
+
def runtest_inner(ns, test, display_failure=True):
support.unload(test)
@@ -173,6 +177,7 @@ def test_runner():
if ns.huntrleaks:
refleak = dash_R(the_module, test, test_runner, ns.huntrleaks)
test_time = time.time() - start_time
+ post_test_cleanup()
except support.ResourceDenied as msg:
if not ns.quiet and not ns.pgo:
print(test, "skipped --", msg, flush=True)
More information about the Python-checkins
mailing list