[ZODB-Dev] Windows vs LRUCacheTests

Tim Peters tim@zope.com
Fri, 24 May 2002 16:03:36 -0400


Note:  While running the ZODB tests over & over to out-think the
TransactionalUndoStorage.py failure on Windows, twice I saw a different
failure:

======================================================================
FAIL: checkDetail (testCache.LRUCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testCache.py", line 194, in checkDetail
  File "C:\PYTHON21\lib\unittest.py", line 273, in failUnlessEqual
    raise self.failureException, (msg or '%s != %s' % (first, second))
AssertionError: 5 != 3
----------------------------------------------------------------------

That's apparently in

        for klass, count in self.db.cacheDetail():
            if klass.endswith('PersistentMapping'):
                # one root per connection
                self.assertEqual(count, CONNS)

Your turn <wink>.