[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - TransactionalUndoStorage.py:1.19
Chris Withers
chrisw@nipltd.com
Thu, 23 May 2002 09:30:22 -0400
Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv25231
Modified Files:
TransactionalUndoStorage.py
Log Message:
make error from failing test more useful, hopefully someone can act on this.
=== Zope/lib/python/ZODB/tests/TransactionalUndoStorage.py 1.18 => 1.19 ===
ZERO = '\0'*8
-
class TransactionalUndoStorage:
def _transaction_begin(self):
@@ -445,7 +444,12 @@
self._storage.pack(packtime, referencesf)
# Make some basic assertions about the undo information now
info2 = self._storage.undoInfo()
- eq(len(info2), 2)
+ leninfo2 = len(info2)
+ eq(leninfo2, 2, "length of self._storage.undoInfo() was %s, it was expected to be %s" % (
+ leninfo2,
+ 2
+ )
+ )
# And now attempt to undo the last transaction
t = Transaction()
self._storage.tpc_begin(t)