[Zope3-checkins] CVS: Zope3/src/zope/app/container/tests -
test_contained.py:1.4
Jeremy Hylton
jeremy at zope.com
Sat Mar 13 02:48:13 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/container/tests
In directory cvs.zope.org:/tmp/cvs-serv29469/src/zope/app/container/tests
Modified Files:
test_contained.py
Log Message:
Revise Connection.
Make _added_during_commit a regular instance variable. Don't use
try/finally to reset it; just clear it at the start of a transaction.
XXX There was a test that needed to be removed, but it seemed to be
just a shallow test that try/finally was used. Can't see any feature
that depends on specific of error handling: The txn is going to abort.
Remove unused _opened instance variable.
Split commit() into two smaller parts.
Get rid of extra manipulation of _creating.
Don't look for _p_serial of None; z64 is now required.
Undo local variable aliases in subtransaction methods.
Also, trivial change to pickle cache API -- get() works like dict get().
=== Zope3/src/zope/app/container/tests/test_contained.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/container/tests/test_contained.py:1.3 Fri Feb 20 11:56:43 2004
+++ Zope3/src/zope/app/container/tests/test_contained.py Sat Mar 13 02:48:12 2004
@@ -209,7 +209,7 @@
And the proxy will be in the cache, because it's refernced from
the root object:
- >>> conn._cache.get(oid, None) is not None
+ >>> conn._cache.get(oid) is not None
True
But it's a ghost:
@@ -224,7 +224,7 @@
no longer be in the cache. To be sure, we'll call gc:
>>> x = gc.collect()
- >>> conn._cache.get(oid, None) is not None
+ >>> conn._cache.get(oid) is not None
False
"""
More information about the Zope3-Checkins
mailing list