Kristján Valur Jónsson <krist...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8799>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to