[Zope-Checkins] CVS: Packages/ZODB/tests - testZODB.py:1.15.8.6
Tim Peters
tim.one at comcast.net
Tue Aug 31 18:51:35 EDT 2004
Update of /cvs-repository/Packages/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv6620/lib/python/ZODB/tests
Modified Files:
Tag: Zope-2_7-branch
testZODB.py
Log Message:
_handle_independent(): Failed to record that a ReadConflictError was
raised for an object with a _p_independent() method that returned
false.
=== Packages/ZODB/tests/testZODB.py 1.15.8.5 => 1.15.8.6 ===
--- Packages/ZODB/tests/testZODB.py:1.15.8.5 Fri Aug 27 15:03:43 2004
+++ Packages/ZODB/tests/testZODB.py Tue Aug 31 18:51:34 2004
@@ -224,6 +224,10 @@
# transaction.
if shouldFail:
self.assertRaises(ReadConflictError, lambda: obj.child1)
+ # And since ReadConflictError was raised, attempting to commit
+ # the transaction should re-raise it. checkNotIndependent()
+ # failed this part of the test for a long time.
+ self.assertRaises(ReadConflictError, cn2.getTransaction().commit)
else:
# make sure that accessing the object succeeds
obj.child1
More information about the Zope-Checkins
mailing list