Skip to content

Commit cc42c12

Browse files
authored
bpo-31067: test_subprocess calls reap_children() (#2931)
test_subprocess now also calls reap_children() in tearDown(), not only on setUp().
1 parent 8e45318 commit cc42c12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_subprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def tearDown(self):
5656
inst.wait()
5757
subprocess._cleanup()
5858
self.assertFalse(subprocess._active, "subprocess._active not empty")
59+
self.doCleanups()
60+
support.reap_children()
5961

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

0 commit comments

Comments
 (0)