[3.6] bpo-31160: Backport reap_children() fixes from master to 3.6 by vstinner · Pull Request #3046 · python/cpython

added 2 commits

August 9, 2017 18:01
PtyTests.run_child() now calls os.waitpid() to read the exit status
of the child process to avoid creating zombie process and leaking
processes in the background.
(cherry picked from commit 4baca1b)
Add a post_test_cleanup() function which currently only calls
support.reap_children().
(cherry picked from commit e3510d7)