[Zodb-checkins] SVN: ZODB/branches/tim-deprecate-subtxn/src/ZODB/tests/testZODB.py Updated out-of-date comments in the PoisonedJar class.

Tim Peters tim.one at comcast.net
Wed Jul 13 21:41:46 EDT 2005


Log message for revision 33313:
  Updated out-of-date comments in the PoisonedJar class.
  

Changed:
  U   ZODB/branches/tim-deprecate-subtxn/src/ZODB/tests/testZODB.py

-=-
Modified: ZODB/branches/tim-deprecate-subtxn/src/ZODB/tests/testZODB.py
===================================================================
--- ZODB/branches/tim-deprecate-subtxn/src/ZODB/tests/testZODB.py	2005-07-14 01:40:25 UTC (rev 33312)
+++ ZODB/branches/tim-deprecate-subtxn/src/ZODB/tests/testZODB.py	2005-07-14 01:41:46 UTC (rev 33313)
@@ -832,8 +832,7 @@
 class PoisonedError(Exception):
     pass
 
-# PoisonedJar arranges to raise exceptions from interesting places.
-# For whatever reason, subtransaction commits don't call tpc_vote.
+# PoisonedJar arranges to raise PoisonedError from interesting places.
 class PoisonedJar:
     def __init__(self, break_tpc_begin=False, break_tpc_vote=False,
                  break_savepoint=False):
@@ -855,7 +854,7 @@
         if self.break_tpc_vote:
             raise PoisonedError("tpc_vote fails")
 
-    # A way to poison a savepoint.
+    # A way to poison a savepoint -- also a way to poison a subtxn commit.
     def savepoint(self):
         if self.break_savepoint:
             raise PoisonedError("savepoint fails")



More information about the Zodb-checkins mailing list