Commit 76243655 authored by Shane Hathaway's avatar Shane Hathaway

Fixed a pack test that was not compatible with storages that always

return an object count of 0.
parent ea62f27e
Next Release
===========
Bugs Fixed:
- Fixed a pack test that was not compatible with storages that always
return an object count of 0.
Whats new in ZODB 3.8.1
=======================
......
......@@ -326,7 +326,8 @@ class PackableStorage(PackableStorageBase):
root[2] = conn.get_connection('o').root()
transaction.commit()
db.pack(time.time()+1)
assert(len(self._storage) == 1)
# some valid storages always return 0 for len()
self.assertTrue(len(self._storage) in (0, 1))
......
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