[Zope-Checkins] CVS: ZODB3/ZODB/tests - testTransaction.py:1.11.8.2

Barry Warsaw barry@wooz.org
Thu, 23 Jan 2003 18:15:15 -0500


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv12444

Modified Files:
      Tag: ZODB3-3_1-branch
	testTransaction.py 
Log Message:
testHoserStoppage(): Remove since there's no hosed state in 3.1.x


=== ZODB3/ZODB/tests/testTransaction.py 1.11.8.1 => 1.11.8.2 ===
--- ZODB3/ZODB/tests/testTransaction.py:1.11.8.1	Tue Nov 12 15:18:08 2002
+++ ZODB3/ZODB/tests/testTransaction.py	Thu Jan 23 18:15:12 2003
@@ -477,37 +477,6 @@
         else:
             self.assertEqual(self.sub3._p_jar.cabort_sub, 1)
 
-    # last test, check the hosing mechanism
-
-    def testHoserStoppage(self):
-        # It's hard to test the "hosed" state of the database, where
-        # hosed means that a failure occurred in the second phase of
-        # the two phase commit.  It's hard because the database can
-        # recover from such an error if it occurs during the very first
-        # tpc_finish() call of the second phase.
-
-        for obj in self.sub1, self.sub2:
-            j = HoserJar(errors='tpc_finish')
-            j.reset()
-            obj._p_jar = j
-            obj.modify(nojar=1)
-
-        try:
-            get_transaction().commit()
-        except TestTxnException:
-            pass
-
-        self.assert_(Transaction.hosed)
-
-        self.sub2.modify()
-
-        try:
-            get_transaction().commit()
-        except Transaction.POSException.TransactionError:
-            pass
-        else:
-            raise "Hosed Application didn't stop commits"
-
 
 class DataObject: