Commit 3d6e7bdf authored by dieter's avatar dieter

fix tests

parent 179530d5
...@@ -9,7 +9,7 @@ from zope.testing import setupstack ...@@ -9,7 +9,7 @@ from zope.testing import setupstack
from concurrent.futures import Future from concurrent.futures import Future
import mock import mock
from ZODB.POSException import ReadOnlyError from ZODB.POSException import ReadOnlyError
from ZODB.utils import maxtid from ZODB.utils import maxtid, RLock
import collections import collections
import logging import logging
...@@ -699,6 +699,7 @@ class MemoryCache(object): ...@@ -699,6 +699,7 @@ class MemoryCache(object):
# { oid -> [(start, end, data)] } # { oid -> [(start, end, data)] }
self.data = collections.defaultdict(list) self.data = collections.defaultdict(list)
self.last_tid = None self.last_tid = None
self._lock = RLock()
clear = __init__ clear = __init__
......
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