Commit 30ab0b84 authored by Chris Withers's avatar Chris Withers

make error from failing test more useful, hopefully someone can act on this.

parent 8b986684
...@@ -15,7 +15,6 @@ from ZODB.tests.StorageTestBase import zodb_pickle, zodb_unpickle ...@@ -15,7 +15,6 @@ from ZODB.tests.StorageTestBase import zodb_pickle, zodb_unpickle
ZERO = '\0'*8 ZERO = '\0'*8
class TransactionalUndoStorage: class TransactionalUndoStorage:
def _transaction_begin(self): def _transaction_begin(self):
...@@ -445,7 +444,12 @@ class TransactionalUndoStorage: ...@@ -445,7 +444,12 @@ class TransactionalUndoStorage:
self._storage.pack(packtime, referencesf) self._storage.pack(packtime, referencesf)
# Make some basic assertions about the undo information now # Make some basic assertions about the undo information now
info2 = self._storage.undoInfo() 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 # And now attempt to undo the last transaction
t = Transaction() t = Transaction()
self._storage.tpc_begin(t) self._storage.tpc_begin(t)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment