[issue8799] Hang in lib/test/test_threading.py

Kristján Valur Jónsson report at bugs.python.org
Mon Apr 9 15:29:01 CEST 2012


Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:

Here is a new patch.
1) I´ve simplified and relaxed test_notify() for Condition objects.  Condition variables don't guarantee that there won't be any spurious wakeups so the test must maintain internal bookkeeping so that it doesn't break with a different implementation of Condition.
2) The main thread now properly waits for the workers to "settle" in the test.
2) I've added two generic tests of Condition objects in their "natural environment" as building blocks for bigger things, a Queue and a Lock.

----------
versions: +Python 3.3 -Python 2.7, Python 3.2
Added file: http://bugs.python.org/file25161/lock_tests.diff

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


More information about the Python-bugs-list mailing list