[Zodb-checkins] SVN: ZODB/branches/tseaver-python_picklecache-2/src/persistent/tests/utils.py Ensure that the dummy jar provides IPersistentDataManager.
Tres Seaver
tseaver at palladion.com
Wed Feb 16 00:04:34 EST 2011
Log message for revision 120366:
Ensure that the dummy jar provides IPersistentDataManager.
Changed:
U ZODB/branches/tseaver-python_picklecache-2/src/persistent/tests/utils.py
-=-
Modified: ZODB/branches/tseaver-python_picklecache-2/src/persistent/tests/utils.py
===================================================================
--- ZODB/branches/tseaver-python_picklecache-2/src/persistent/tests/utils.py 2011-02-16 05:04:32 UTC (rev 120365)
+++ ZODB/branches/tseaver-python_picklecache-2/src/persistent/tests/utils.py 2011-02-16 05:04:34 UTC (rev 120366)
@@ -4,9 +4,12 @@
"""
def __init__(self):
from persistent import PickleCache # XXX stub it!
- self.cache = PickleCache(self)
+ from persistent.interfaces import IPersistentDataManager
+ from zope.interface import directlyProvides
+ self.cache = self._cache = PickleCache(self)
self.oid = 1
self.registered = {}
+ directlyProvides(self, IPersistentDataManager)
def add(self, obj):
import struct
More information about the Zodb-checkins
mailing list