[Zope3-checkins] CVS: Zope3/src/ZODB/tests - testmvcc.py:1.3

Jeremy Hylton jeremy at zope.com
Thu Mar 11 22:00:57 EST 2004


Update of /cvs-repository/Zope3/src/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv29786

Modified Files:
	testmvcc.py 
Log Message:
Cleanup two cycles involving transactions.  Where's the 3rd?


=== Zope3/src/ZODB/tests/testmvcc.py 1.2 => 1.3 ===
--- Zope3/src/ZODB/tests/testmvcc.py:1.2	Thu Mar 11 17:20:02 2004
+++ Zope3/src/ZODB/tests/testmvcc.py	Thu Mar 11 22:00:55 2004
@@ -293,6 +293,18 @@
 - storage doesn't have an earlier revision
 - MVCC returns current revision
 
+Cleanup
+-------
+
+The setLocalTransaction() feature creates cyclic trash involving the
+Connection and Transaction.  The Transaction has an __del__ method,
+which prevents the cycle from being collected.  There's no API for
+clearing the Connection's local transaction.
+
+>>> cn._transaction = None
+>>> cn1._transaction = None
+>>> cn2._transaction = None
+
 """
 
 import doctest




More information about the Zope3-Checkins mailing list