[Checkins] SVN: relstorage/trunk/relstorage/tests/reltestbase.py This version should work with ZODB 3.8 and 3.9
Shane Hathaway
shane at hathawaymix.org
Sat Oct 17 23:36:21 EDT 2009
Log message for revision 105123:
This version should work with ZODB 3.8 and 3.9
Changed:
U relstorage/trunk/relstorage/tests/reltestbase.py
-=-
Modified: relstorage/trunk/relstorage/tests/reltestbase.py
===================================================================
--- relstorage/trunk/relstorage/tests/reltestbase.py 2009-10-18 02:39:32 UTC (rev 105122)
+++ relstorage/trunk/relstorage/tests/reltestbase.py 2009-10-18 03:36:21 UTC (rev 105123)
@@ -237,12 +237,10 @@
self.assert_(c1._storage._cache.clients_global_first[0].servers,
['x:1', 'y:2'])
r1 = c1.root()
- # the root state, the commit count, and checkpoints should
- # now be cached
- self.assertEqual(len(fakecache.data), 3)
+ # The root state and checkpoints should now be cached.
+ # A commit count *might* be cached depending on the ZODB version.
self.assertTrue('zzz:checkpoints' in fakecache.data)
- self.assertTrue('zzz:commits' in fakecache.data)
- self.assertEqual(sorted(fakecache.data.keys())[2][:10],
+ self.assertEqual(sorted(fakecache.data.keys())[-1][:10],
'zzz:state:')
r1['alpha'] = PersistentMapping()
transaction.commit()
More information about the checkins
mailing list