Skip to content

Commit 504939f

Browse files
authored
bpo-31067: test_subprocess calls reap_children() (python#2931) (python#3073)
test_subprocess now also calls reap_children() in tearDown(), not only on setUp(). (cherry picked from commit cc42c12)
1 parent 4dea065 commit 504939f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Lib/test/test_subprocess.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def tearDown(self):
5757
inst.wait()
5858
subprocess._cleanup()
5959
self.assertFalse(subprocess._active, "subprocess._active not empty")
60+
self.doCleanups()
61+
test_support.reap_children()
6062

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

0 commit comments

Comments
 (0)