Skip to content

Commit

Permalink
bpo-31067: test_subprocess calls reap_children() (#2931) (#3073)
Browse files Browse the repository at this point in the history
test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().
(cherry picked from commit cc42c12)
  • Loading branch information
vstinner committed Aug 11, 2017
1 parent 4dea065 commit 504939f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_subprocess.py
Expand Up @@ -57,6 +57,8 @@ def tearDown(self):
inst.wait()
subprocess._cleanup()
self.assertFalse(subprocess._active, "subprocess._active not empty")
self.doCleanups()
test_support.reap_children()

def assertStderrEqual(self, stderr, expected, msg=None):
# In a debug build, stuff like "[6580 refs]" is printed to stderr at
Expand Down

0 comments on commit 504939f

Please sign in to comment.