mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Call reap_children() where appropriate
This commit is contained in:
parent
9c0d5eaa70
commit
8189ab85e3
2 changed files with 11 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
from test.support import verbose, run_unittest, import_module
|
||||
from test.support import verbose, run_unittest, import_module, reap_children
|
||||
|
||||
#Skip these tests if either fcntl or termios is not available
|
||||
fcntl = import_module('fcntl')
|
||||
|
@ -195,7 +195,10 @@ class PtyTest(unittest.TestCase):
|
|||
# pty.fork() passed.
|
||||
|
||||
def test_main(verbose=None):
|
||||
run_unittest(PtyTest)
|
||||
try:
|
||||
run_unittest(PtyTest)
|
||||
finally:
|
||||
reap_children()
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue