Browse Source

bpo-31067: test_subprocess calls reap_children() (#2931)

test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().
pull/2413/merge
Victor Stinner 9 years ago
committed by GitHub
parent
commit
cc42c121eb
  1. 2
      Lib/test/test_subprocess.py

2
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

Loading…
Cancel
Save