[ZODB-Dev] Test Failure

Tim Peters tim@zope.com
Fri, 24 May 2002 11:29:13 -0400


[Chris Withers]
> ======================================================================
> FAIL: checkTransactionalUndoAfterPack (testFileStorage.FileStorageTests)
>
> Traceback (most recent call last): File
> "E:\ZopeTests\sandbox\Zope\lib\python\ZODB\tests\TransactionalUndo
> Storage.py",
> line 448, in checkTransactionalUndoAfterPack
> ...
> AssertionError: length of self._storage.undoInfo() was 3, it
> was expected to be 2

[Barry Warsaw, making excuses <wink>]
> I've never see it fail on Linux.
> ...
> Time for Uncle Timmy. :)

After the test's

        info2 = self._storage.undoInfo()

here's what's in info2 during a failing run:

[{'time': 1022253330.5599999, 'id': 'A0T5c4Jjq1YAAAAAAAAA/AAAAAAAAAAB',
  'user_name': '', 'description': ''},
 {'time': 1022253330.5599999, 'id': 'A0T5c4Jjq1UAAAAAAAAAgAAAAAAAAAAB',
  'user_name': '', 'description': ''},
 {'time': 1022253329.5700002, 'id': 'A0T5c34qU0wAAAAAAAAABAAAAAAAAAAB',
  'user_name': '', 'description': ''}]

Your turn.  It may help to know that time.time() has very coarse resolution
on Windows (it only updates at 55Hz); I vaguely recall other
Windows-specific failures getting traced to that.