[New-bugs-announce] [issue23799] Join started threads in tests
report at bugs.python.org
Sat Mar 28 21:10:30 CET 2015
New submission from Serhiy Storchaka:
When a test starts many threads in a loop, there is a chance that the starting thread will fail due to lack of memory. In this case all started threads left dangling and make MemotyError even more probably. They also can provoke dim error messages in this and in following tests. Proposed patch adds new helper function test.support.start_threads() that starts threads and then join started threads.
Some tests even hang without this patch.
stage: patch review
title: Join started threads in tests
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38720/test_support_start_threads.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce