Skip to content

Commit 9890bcb

Browse files
committed
Align reap_children() docstring with the regrtest documentation.
1 parent af68b2e commit 9890bcb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Lib/test/support/__init__.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,10 +1595,10 @@ def set_environment_altered(reason):
15951595

15961596

15971597
def reap_children():
1598-
"""Use this function at the end of test_main() whenever sub-processes
1599-
are started. This will help ensure that no extra children (zombies)
1600-
stick around to hog resources and create problems when looking
1601-
for refleaks.
1598+
"""Call this from a test's setUp(), tearDown(), or tearDownModule()
1599+
when the test starts subprocesses. This will help ensure that no extra
1600+
children (zombies) stick around to hog resources and create problems when
1601+
looking for refleaks.
16021602
"""
16031603
# Need os.waitpid(-1, os.WNOHANG): Windows is not supported
16041604
if not (hasattr(os, 'waitpid') and hasattr(os, 'WNOHANG')):

0 commit comments

Comments
 (0)