From: Victor Stinner Date: Fri, 11 Aug 2017 15:14:31 +0000 (+0200) Subject: bpo-31067: test_subprocess calls reap_children() (#2931) (#3073) X-Git-Tag: v2.7.14rc1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=504939fdf4ebdff47aacfab7876754edeb57bbe1;p=python bpo-31067: test_subprocess calls reap_children() (#2931) (#3073) test_subprocess now also calls reap_children() in tearDown(), not only on setUp(). (cherry picked from commit cc42c121eb5346f673247f95dac575aadb77d66c) --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index ce3372354c..a5a727efd6 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -57,6 +57,8 @@ class BaseTestCase(unittest.TestCase): inst.wait() subprocess._cleanup() self.assertFalse(subprocess._active, "subprocess._active not empty") + self.doCleanups() + test_support.reap_children() def assertStderrEqual(self, stderr, expected, msg=None): # In a debug build, stuff like "[6580 refs]" is printed to stderr at