[Zodb-checkins] CVS: ZODB3/persistent/tests - test_PickleCache.py:1.1.2.2

Steve Alexander steve at cat-box.net
Thu Jan 29 08:32:19 EST 2004


Update of /cvs-repository/ZODB3/persistent/tests
In directory cvs.zope.org:/tmp/cvs-serv23075/tests

Modified Files:
      Tag: zope3-zodb3-devel-branch
	test_PickleCache.py 
Log Message:
Added a new section to the doctest of Cache.__delitem__ to demonstrate
the bug I introduced in my previous checkin.

Yep, I forgot the {}   :-/   Why can't C be more like Python?



=== ZODB3/persistent/tests/test_PickleCache.py 1.1.2.1 => 1.1.2.2 ===
--- ZODB3/persistent/tests/test_PickleCache.py:1.1.2.1	Wed Jan 28 12:25:34 2004
+++ ZODB3/persistent/tests/test_PickleCache.py	Thu Jan 29 08:32:18 2004
@@ -31,6 +31,12 @@
     Traceback (most recent call last):
     ...
     KeyError: ''
+    >>> from persistent import Persistent
+    >>> p = Persistent()
+    >>> p._p_oid = 'foo'
+    >>> p._p_jar = conn
+    >>> cache['foo'] = p
+    >>> del cache['foo']
 
     """
 




More information about the Zodb-checkins mailing list