Commit 7ef54413 authored by Tres Seaver's avatar Tres Seaver

Fix tests broken w/ pure-Python psrsistent.

parent d78f5314
...@@ -2629,9 +2629,16 @@ class Test_weightedUnion(unittest.TestCase, _SetObBase): ...@@ -2629,9 +2629,16 @@ class Test_weightedUnion(unittest.TestCase, _SetObBase):
self.assertEqual(result['e'], 11) self.assertEqual(result['e'], 11)
class _Cache(object):
def __init__(self):
self._mru = []
def mru(self, oid):
self._mru.append(oid)
class _Jar(object): class _Jar(object):
def __init__(self): def __init__(self):
self._current = set() self._current = set()
self._cache = _Cache()
def readCurrent(self, obj): def readCurrent(self, obj):
self._current.add(obj) self._current.add(obj)
def register(self, obj): def register(self, obj):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment