[Zodb-checkins] CVS: Zope3/src/zodb/storage/tests - packable.py:1.11
Barry Warsaw
barry at zope.com
Fri May 16 18:38:51 EDT 2003
Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv21462
Modified Files:
packable.py
Log Message:
Use a more modern spelling of "does this storage support undo?"
=== Zope3/src/zodb/storage/tests/packable.py 1.10 => 1.11 ===
--- Zope3/src/zodb/storage/tests/packable.py:1.10 Fri May 16 15:47:48 2003
+++ Zope3/src/zodb/storage/tests/packable.py Fri May 16 17:38:50 2003
@@ -24,6 +24,7 @@
from zodb.ztransaction import Transaction
from zodb.storage.tests.minpo import MinPO
from zodb.storage.tests.base import zodb_unpickle, snooze
+from zodb.storage.interfaces import IUndoStorage
@@ -269,19 +270,24 @@
t.join(1)
self.assert_(not t.isAlive())
- # iterator over the storage to make sure it's sane
+ # Iterate over the storage to make sure it's sane, but not every
+ # storage supports iterators.
+ if not IUndoStorage.isImplementedBy(self._storage):
+ return
+
iter = self._storage.iterator()
for txn in iter:
for data in txn:
pass
iter.close()
+
class ClientThread(threading.Thread):
def __init__(self, db):
threading.Thread.__init__(self)
self.root = db.open().root()
-
+
def run(self):
for j in range(50):
try:
More information about the Zodb-checkins
mailing list