[Zope3-checkins] CVS: Zope/lib/python/transaction/tests - test_register_compat.py:1.3

Tim Peters tim.one at comcast.net
Thu Apr 15 21:08:14 EDT 2004


Update of /cvs-repository/Zope/lib/python/transaction/tests
In directory cvs.zope.org:/tmp/cvs-serv10213/lib/python/transaction/tests

Modified Files:
	test_register_compat.py 
Log Message:
Finally changed Connection to use the new transaction join API.  This
essentially means a connection keep track of which objects from
the connection are modified, instead of transactions keeping track of that.
A good consequence hasn't yet been implemented:  if a connection is
closed with modifications still pending, we can detect that efficiently
now, and complain.


=== Zope/lib/python/transaction/tests/test_register_compat.py 1.2 => 1.3 ===
--- Zope/lib/python/transaction/tests/test_register_compat.py:1.2	Wed Mar 31 22:56:56 2004
+++ Zope/lib/python/transaction/tests/test_register_compat.py	Thu Apr 15 21:08:13 2004
@@ -67,9 +67,11 @@
 Note that the implementation uses lists internally, so that objects
 are committed in the order they are registered.  (In the presence of
 multiple resource managers, objects from a single resource manager are
-committed in order.  The order of resource managers depends on
-sortKey().)  I'm not sure if this is an accident of the implementation
-or a feature that should be supported by any implementation.
+committed in order.  I'm not sure if this is an accident of the
+implementation or a feature that should be supported by any
+implementation.)
+
+The order of resource managers depends on sortKey().
 
 >>> cn = TestConnection()
 >>> cn.register(Object())
@@ -82,8 +84,7 @@
 >>> len(cn.committed)
 1
 >>> len(cn.aborted)
-2
-
+3
 """
 
 import transaction




More information about the Zope3-Checkins mailing list