Commit 9470ab43 authored by Antoine Pitrou's avatar Antoine Pitrou

Make sure to reap worker threads and processes at the end of test_concurrent_futures

parent 1f0ccfa8
...@@ -598,16 +598,20 @@ class FutureTests(unittest.TestCase): ...@@ -598,16 +598,20 @@ class FutureTests(unittest.TestCase):
self.assertTrue(isinstance(f1.exception(timeout=5), IOError)) self.assertTrue(isinstance(f1.exception(timeout=5), IOError))
@test.support.reap_threads
def test_main(): def test_main():
test.support.run_unittest(ProcessPoolExecutorTest, try:
ThreadPoolExecutorTest, test.support.run_unittest(ProcessPoolExecutorTest,
ProcessPoolWaitTests, ThreadPoolExecutorTest,
ThreadPoolWaitTests, ProcessPoolWaitTests,
ProcessPoolAsCompletedTests, ThreadPoolWaitTests,
ThreadPoolAsCompletedTests, ProcessPoolAsCompletedTests,
FutureTests, ThreadPoolAsCompletedTests,
ProcessPoolShutdownTest, FutureTests,
ThreadPoolShutdownTest) ProcessPoolShutdownTest,
ThreadPoolShutdownTest)
finally:
test.support.reap_children()
if __name__ == "__main__": if __name__ == "__main__":
test_main() test_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