Commit aa76ed87 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 cb6855dd
......@@ -312,7 +312,8 @@ class PackableStorage(PackableStorageBase):
root[2] = conn.get_connection('o').root()
transaction.commit()
db.pack(time.time()+1)
self.assertEqual(len(self._storage), 1)
# some valid storages always return 0 for len()
self.assertTrue(len(self._storage) in (0, 1))
def checkPackAllRevisions(self):
self._initroot()
......
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