-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')
# pty.fork() passed.
def test_main(verbose=None):
- run_unittest(PtyTest)
+ try:
+ run_unittest(PtyTest)
+ finally:
+ reap_children()
if __name__ == "__main__":
test_main()
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__":