diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-08-11 15:14:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-11 15:14:37 (GMT) |
commit | f2d769d539279f01a6589dd3a0d5865dd00e13b0 (patch) | |
tree | 1131ddac5bc4a28dcf72af4842c9783d26ce9550 /Lib/test/test_subprocess.py | |
parent | bc69d00288a0b1f5ef49dcfd60a91c5e9b5b81ae (diff) | |
download | cpython-f2d769d539279f01a6589dd3a0d5865dd00e13b0.zip cpython-f2d769d539279f01a6589dd3a0d5865dd00e13b0.tar.gz cpython-f2d769d539279f01a6589dd3a0d5865dd00e13b0.tar.bz2 |
bpo-31067: test_subprocess calls reap_children() (#2931) (#3074)
test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().
(cherry picked from commit cc42c121eb5346f673247f95dac575aadb77d66c)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 4faf32e..004f1f0 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -61,6 +61,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 |