[Checkins] SVN:	ZODB/branches/shane-poll-invalidations/src/ZODB/tests/PackableStorage.py	Fixed a test that required len(storage) to return nonzero;	the len() operation is optional.
    Shane Hathaway 
    shane at hathawaymix.org
       
    Fri Dec 12 20:34:10 EST 2008
    
    
  
Log message for revision 94009:
  Fixed a test that required len(storage) to return nonzero; the len() operation is optional.
  
Changed:
  U   ZODB/branches/shane-poll-invalidations/src/ZODB/tests/PackableStorage.py
-=-
Modified: ZODB/branches/shane-poll-invalidations/src/ZODB/tests/PackableStorage.py
===================================================================
--- ZODB/branches/shane-poll-invalidations/src/ZODB/tests/PackableStorage.py	2008-12-13 01:00:50 UTC (rev 94008)
+++ ZODB/branches/shane-poll-invalidations/src/ZODB/tests/PackableStorage.py	2008-12-13 01:34:09 UTC (rev 94009)
@@ -312,7 +312,8 @@
         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()
    
    
More information about the Checkins
mailing list