[New-bugs-announce] [issue23799] Join started threads in tests

Serhiy Storchaka 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.

components: Tests
files: test_support_start_threads.patch
keywords: patch
messages: 239465
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Join started threads in tests
type: enhancement
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 mailing list