Commit 20de77a2 authored by Jeremy Hylton's avatar Jeremy Hylton

Don't let test fail if storage has no pack.

(Just hope that the storage is sane :-).
parent 3d0483c4
...@@ -414,6 +414,8 @@ class PackableStorage(PackableStorageBase): ...@@ -414,6 +414,8 @@ class PackableStorage(PackableStorageBase):
self.assert_(not t.isAlive()) self.assert_(not t.isAlive())
# iterator over the storage to make sure it's sane # iterator over the storage to make sure it's sane
if not hasattr(self._storage, "iterator"):
return
iter = self._storage.iterator() iter = self._storage.iterator()
for txn in iter: for txn in iter:
for data in txn: for data in txn:
......
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