testLen(): This test implicitly relied on completing in less than 1
second of wall-clock time. That's plenty, except when, e.g., a burst of network activity takes the CPU away for a second. Jeremy saw it fail once yesterday when running Zope-2_6-branch pre-release tests, and that was unfortunate timing <wink>. I found that running it in a loop eventually caused a spurious failure whenever I ran it too. So, in just this test, boosted the timeout by a factor of 60. This should make it astronomically unlikely to fail. Also sped the test by removing unneeded .keys() and .sort() calls. Also switched from using Python's assert stmt to unittest's assertEqual() facility.
Showing
Please register or sign in to comment