summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-07-28 16:00:22 (GMT)
committerGitHub <noreply@github.com>2017-07-28 16:00:22 (GMT)
commitcc42c121eb5346f673247f95dac575aadb77d66c (patch)
treecb7628b3b2887df3e685d10cb42a022e137e9255 /Lib
parent8e45318b0d8df9340ac41b1d0447ffc83c7f5102 (diff)
downloadcpython-cc42c121eb5346f673247f95dac575aadb77d66c.zip
cpython-cc42c121eb5346f673247f95dac575aadb77d66c.tar.gz
cpython-cc42c121eb5346f673247f95dac575aadb77d66c.tar.bz2
bpo-31067: test_subprocess calls reap_children() (#2931)
test_subprocess now also calls reap_children() in tearDown(), not only on setUp().
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 2 insertions, 0 deletions
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