From cc42c121eb5346f673247f95dac575aadb77d66c Mon Sep 17 00:00:00 2001
From: Victor Stinner <victor.stinner@gmail.com>
Date: Fri, 28 Jul 2017 18:00:22 +0200
Subject: bpo-31067: test_subprocess calls reap_children() (#2931)

test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().
---
 Lib/test/test_subprocess.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 4052c5e..a99976a 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -56,6 +56,8 @@ class BaseTestCase(unittest.TestCase):
             inst.wait()
         subprocess._cleanup()
         self.assertFalse(subprocess._active, "subprocess._active not empty")
+        self.doCleanups()
+        support.reap_children()
 
     def assertStderrEqual(self, stderr, expected, msg=None):
         # In a debug build, stuff like "[6580 refs]" is printed to stderr at
-- 
cgit v0.12

