[Checkins] SVN: ZODB/branches/3.8/ Fixed a pack test that was not	compatible with storages that always
    Shane Hathaway 
    shane at hathawaymix.org
       
    Fri Dec 12 21:18:41 EST 2008
    
    
  
Log message for revision 94010:
  Fixed a pack test that was not compatible with storages that always
  return an object count of 0.
  
Changed:
  U   ZODB/branches/3.8/NEWS.txt
  U   ZODB/branches/3.8/src/ZODB/tests/PackableStorage.py
-=-
Modified: ZODB/branches/3.8/NEWS.txt
===================================================================
--- ZODB/branches/3.8/NEWS.txt	2008-12-13 01:34:09 UTC (rev 94009)
+++ ZODB/branches/3.8/NEWS.txt	2008-12-13 02:18:41 UTC (rev 94010)
@@ -1,4 +1,11 @@
+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
 =======================
 
Modified: ZODB/branches/3.8/src/ZODB/tests/PackableStorage.py
===================================================================
--- ZODB/branches/3.8/src/ZODB/tests/PackableStorage.py	2008-12-13 01:34:09 UTC (rev 94009)
+++ ZODB/branches/3.8/src/ZODB/tests/PackableStorage.py	2008-12-13 02:18:41 UTC (rev 94010)
@@ -326,7 +326,8 @@
         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))
                 
         
         
    
    
More information about the Checkins
mailing list