[Zodb-checkins] SVN: ZODB/branches/tseaver-python_picklecache/src/persistent/tests/test_PickleCache.py Fix test breakage when cPickleCache is missing.
Tres Seaver
tseaver at palladion.com
Tue Mar 31 16:38:54 EDT 2009
Log message for revision 98731:
Fix test breakage when cPickleCache is missing.
Changed:
U ZODB/branches/tseaver-python_picklecache/src/persistent/tests/test_PickleCache.py
-=-
Modified: ZODB/branches/tseaver-python_picklecache/src/persistent/tests/test_PickleCache.py
===================================================================
--- ZODB/branches/tseaver-python_picklecache/src/persistent/tests/test_PickleCache.py 2009-03-31 20:38:15 UTC (rev 98730)
+++ ZODB/branches/tseaver-python_picklecache/src/persistent/tests/test_PickleCache.py 2009-03-31 20:38:54 UTC (rev 98731)
@@ -27,12 +27,14 @@
>>> from persistent import PickleCache
>>> conn = DummyConnection()
>>> cache = PickleCache(conn)
- >>> del cache['']
+ >>> del cache[''] # doctest: +ELLIPSIS
Traceback (most recent call last):
...
- KeyError: ''
+ KeyError:...
>>> from persistent import Persistent
- >>> p = Persistent()
+ >>> class Derived(Persistent):
+ ... pass
+ >>> p = Derived()
>>> p._p_oid = 'foo'
>>> p._p_jar = conn
>>> cache['foo'] = p
More information about the Zodb-checkins
mailing list