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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23799>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to