Commit 7903cb72 authored by Antoine Pitrou's avatar Antoine Pitrou

Merge

parents 38a04e51 8189ab85
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()
......@@ -484,9 +484,12 @@ class ItimerTest(unittest.TestCase):
self.assertEqual(self.hndl_called, True)
def test_main():
support.run_unittest(BasicSignalTests, InterProcessSignalTests,
WakeupSignalTests, SiginterruptTest,
ItimerTest, WindowsSignalTests)
try:
support.run_unittest(BasicSignalTests, InterProcessSignalTests,
WakeupSignalTests, SiginterruptTest,
ItimerTest, WindowsSignalTests)
finally:
support.reap_children()
if __name__ == "__main__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment