test/Container.py: unittest fails
Brought to you by:
zzzeek
In test/Container.py, ContainerTest.testDbmContainer2
fails for me.
Details of failure are:
testDbmContainer2 (__main__.ContainerTest) ...
testing myghty.container.DBMContainer for 10 secs
with expiretime 2
delay 0
create thread 1 starting
create thread 2 starting
[...]
create thread 3 exiting
total object creates 2
total object gets 6788
FAIL
(Translation: The test script expects (approximately)
five object creates, but it only sees two.)
This is in the latest CVS version of test/Container.py
(file revision 1.13). The version from release 0.99
also fails, but in that case it is
ContainerTest.testcontainer which fails.
Logged In: YES
user_id=1100624
try bringing the total number of threads from 20 down to 10,
it might just be that your machine is letting the threads
pile up on top of each other in some way.
i attached a patch to bring it down to 10 and also the
"__main__" line at the bottom is fixed so command line
testargumentws are obeyed.
patch to change 20 threads to 10
Logged In: YES
user_id=45814
Thanks Mike. That (reducing the number of threads to 10)
fixed it.