[Zope3-checkins] CVS: Zope3/src/transaction/tests - abstestIDataManager.py:1.3.44.3

Jim Fulton jim at zope.com
Fri Jan 23 11:41:25 EST 2004


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

Modified Files:
      Tag: zope3-zodb3-devel-branch
	abstestIDataManager.py 
Log Message:
Fixed the savepoint test so that it is consistent with the interface.
The savepoint method is required to return a rollback.  It's
not allowed to return None.


=== Zope3/src/transaction/tests/abstestIDataManager.py 1.3.44.2 => 1.3.44.3 ===
--- Zope3/src/transaction/tests/abstestIDataManager.py:1.3.44.2	Fri Jan 16 10:41:44 2004
+++ Zope3/src/transaction/tests/abstestIDataManager.py	Fri Jan 23 11:41:24 2004
@@ -31,6 +31,7 @@
 """
 
 from unittest import TestCase
+from transaction.interfaces import IRollback
 
 class IDataManagerTests(TestCase, object):
 
@@ -59,5 +60,4 @@
     def testRollback(self):
         tran = self.get_transaction()
         rb = self.datamgr.savepoint(tran)
-        if rb is not None:
-            rb.rollback()
+        self.assert_(IRollback.isImplementedBy(rb))




More information about the Zope3-Checkins mailing list