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 <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100306001856.82794941DB__10339.5637045198$1267834744$gmane$org@cvs.zope.org>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.