[Checkins] SVN: BTrees/branches/pure_python/ Fix tests broken w/ pure-Python psrsistent.

Tres Seaver cvs-admin at zope.org
Tue Dec 4 02:16:22 UTC 2012


Log message for revision 128502:
  Fix tests broken w/ pure-Python psrsistent.

Changed:
  _U  BTrees/branches/pure_python/
  U   BTrees/branches/pure_python/BTrees/tests/test__base.py

-=-
Modified: BTrees/branches/pure_python/BTrees/tests/test__base.py
===================================================================
--- BTrees/branches/pure_python/BTrees/tests/test__base.py	2012-12-04 02:16:21 UTC (rev 128501)
+++ BTrees/branches/pure_python/BTrees/tests/test__base.py	2012-12-04 02:16:21 UTC (rev 128502)
@@ -2629,9 +2629,16 @@
         self.assertEqual(result['e'], 11)
 
 
+class _Cache(object):
+    def __init__(self):
+        self._mru = []
+    def mru(self, oid):
+        self._mru.append(oid)
+
 class _Jar(object):
     def __init__(self):
         self._current = set()
+        self._cache = _Cache()
     def readCurrent(self, obj):
         self._current.add(obj)
     def register(self, obj):



More information about the checkins mailing list