[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests -
TransactionalUndoStorage.py:1.30.2.1
Toby Dickenson
tdickenson at geminidataloggers.com
Wed May 14 17:26:12 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv24067/tests
Modified Files:
Tag: toby_directorystorage_tests_branch
TransactionalUndoStorage.py
Log Message:
allow DirectoryStorage to override a method in this test suite to provide whatever pause it needs between packs. no pause by default for other storages
=== Zope/lib/python/ZODB/tests/TransactionalUndoStorage.py 1.30 => 1.30.2.1 ===
--- Zope/lib/python/ZODB/tests/TransactionalUndoStorage.py:1.30 Thu May 8 17:57:53 2003
+++ Zope/lib/python/ZODB/tests/TransactionalUndoStorage.py Wed May 14 16:26:12 2003
@@ -619,6 +619,7 @@
obj = root["key%d" % i]
self.assertEqual(obj.value, i)
root.items()
+ self._inter_pack_pause()
def checkPackAfterUndoManyTimes(self):
db = DB(self._storage)
@@ -658,6 +659,12 @@
# never change that.
self.assertEqual(rt["test"].value, 3)
self.assertEqual(rt["test2"].value, 2)
+ self._inter_pack_pause()
+
+ def _inter_pack_pause(self):
+ # DirectoryStorage needs a pause between packs,
+ # most other storages dont.
+ pass
def checkTransactionalUndoIterator(self):
# check that data_txn set in iterator makes sense
More information about the Zodb-checkins
mailing list