[New-bugs-announce] [issue8799] Hang in lib/test/test_threading.py

Kristján Valur Jónsson report at bugs.python.org
Mon May 24 11:44:18 CEST 2010


New submission from Kristján Valur Jónsson <kristjan at ccpgames.com>:

The tests for the ConditionVariable a fragile.  On a slow computer, or when running a DEBUG build, the main thread can issue a condition.notify() call, even though the worker threads have not settled in on a wait() call.  This causes the test to stall.
The provided patch "fixes" this by adding a short _wait() before the notify.

----------
components: Library (Lib)
files: locktest.patch
keywords: easy, patch, patch
messages: 106349
nosy: krisvale
priority: normal
severity: normal
status: open
title: Hang in lib/test/test_threading.py
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file17447/locktest.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8799>
_______________________________________


More information about the New-bugs-announce mailing list