[Zodb-checkins] CVS: Zope3/src/ZODB/tests - testTransaction.py:1.19.2.3

Tim Peters tim.one at comcast.net
Fri Mar 19 17:09:13 EST 2004


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

Modified Files:
      Tag: jeremy-txn-branch
	testTransaction.py 
Log Message:
testExceptionInSubCommitSub:  use assertEqual instead of assert.


=== Zope3/src/ZODB/tests/testTransaction.py 1.19.2.2 => 1.19.2.3 ===
--- Zope3/src/ZODB/tests/testTransaction.py:1.19.2.2	Fri Mar 19 17:06:18 2004
+++ Zope3/src/ZODB/tests/testTransaction.py	Fri Mar 19 17:09:11 2004
@@ -431,18 +431,18 @@
             pass
 
         if self.sub1._p_jar.ccommit_sub:
-            assert self.sub1._p_jar.ctpc_abort == 1
+            self.assertEqual(self.sub1._p_jar.ctpc_abort, 1)
         else:
-            assert self.sub1._p_jar.cabort_sub == 1
+            self.assertEqual(self.sub1._p_jar.cabort_sub, 1)
 
-        assert self.sub2._p_jar.ctpc_abort == 1
-        assert self.nosub1._p_jar.ctpc_abort == 1
+        self.assertEqual(self.sub2._p_jar.ctpc_abort, 1)
+        self.assertEqual(self.nosub1._p_jar.ctpc_abort, 1)
 
         # XXX this test fails intermittently
         if self.sub3._p_jar.ccommit_sub:
-            assert self.sub3._p_jar.ctpc_abort == 1
+            self.assertEqual(self.sub3._p_jar.ctpc_abort, 1)
         else:
-            assert self.sub3._p_jar.cabort_sub == 1
+            self.assertEqual(self.sub3._p_jar.cabort_sub, 1)
 
     def testExceptionInSubAbortSub(self):
         # This test has two errors.  When commit_sub() is called on




More information about the Zodb-checkins mailing list