test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().
(cherry picked from commit cc42c121eb
)
This commit is contained in:
parent
4dea06531e
commit
504939fdf4
|
@ -57,6 +57,8 @@ class BaseTestCase(unittest.TestCase):
|
||||||
inst.wait()
|
inst.wait()
|
||||||
subprocess._cleanup()
|
subprocess._cleanup()
|
||||||
self.assertFalse(subprocess._active, "subprocess._active not empty")
|
self.assertFalse(subprocess._active, "subprocess._active not empty")
|
||||||
|
self.doCleanups()
|
||||||
|
test_support.reap_children()
|
||||||
|
|
||||||
def assertStderrEqual(self, stderr, expected, msg=None):
|
def assertStderrEqual(self, stderr, expected, msg=None):
|
||||||
# In a debug build, stuff like "[6580 refs]" is printed to stderr at
|
# In a debug build, stuff like "[6580 refs]" is printed to stderr at
|
||||||
|
|
Loading…
Reference in New Issue