[Checkins] SVN: ZODB/branches/hannosch-lp533015-bytesizecache/src/ZODB/tests/testConnection.py Added second test condition proposed by Nikolay Kim, on some platforms the value was set to 0 and not 2**32

Hanno Schlichting hannosch at hannosch.eu
Fri Mar 5 19:18:56 EST 2010


Log message for revision 109692:
  Added second test condition proposed by Nikolay Kim, on some platforms the value was set to 0 and not 2**32
  

Changed:
  U   ZODB/branches/hannosch-lp533015-bytesizecache/src/ZODB/tests/testConnection.py

-=-
Modified: ZODB/branches/hannosch-lp533015-bytesizecache/src/ZODB/tests/testConnection.py
===================================================================
--- ZODB/branches/hannosch-lp533015-bytesizecache/src/ZODB/tests/testConnection.py	2010-03-05 23:36:47 UTC (rev 109691)
+++ ZODB/branches/hannosch-lp533015-bytesizecache/src/ZODB/tests/testConnection.py	2010-03-06 00:18:56 UTC (rev 109692)
@@ -701,6 +701,8 @@
         # make the object smaller
         obj.setValueWithSize(100)
         transaction.savepoint()
+        # the object still fits into the cache, so it should be there
+        self.assert_(cache.total_estimated_size >= 100)
         # make sure there was no overflow
         self.assert_(cache.total_estimated_size <= 1000)
 



More information about the checkins mailing list