[Zope3-checkins] CVS: Zope3/src/zope/app/rdb/tests -
test_zopedbtransactionmanager.py:1.3.46.1
Jim Fulton
jim at zope.com
Fri Jan 23 11:41:28 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/rdb/tests
In directory cvs.zope.org:/tmp/cvs-serv21547/src/zope/app/rdb/tests
Modified Files:
Tag: zope3-zodb3-devel-branch
test_zopedbtransactionmanager.py
Log Message:
The savepoint method returned None. This is inconsistent with
IDataManager. It must return a rollback object. Added a rollback
object that raises an exception if it's used.
=== Zope3/src/zope/app/rdb/tests/test_zopedbtransactionmanager.py 1.3 => 1.3.46.1 ===
--- Zope3/src/zope/app/rdb/tests/test_zopedbtransactionmanager.py:1.3 Thu May 1 15:35:30 2003
+++ Zope3/src/zope/app/rdb/tests/test_zopedbtransactionmanager.py Fri Jan 23 11:41:27 2004
@@ -15,7 +15,7 @@
$Id$
"""
-from unittest import TestCase, main, makeSuite
+from unittest import TestCase, main, makeSuite, TestSuite
from transaction import get_transaction
from transaction.tests.abstestIDataManager import IDataManagerTests
from zope.app.rdb import ZopeDBTransactionManager
@@ -44,7 +44,11 @@
self.assertEqual(self.conn._called.get('commit'), 1)
def test_suite():
- return makeSuite(TxnMgrTest)
+ from doctest import DocTestSuite
+ return TestSuite((
+ DocTestSuite('zope.app.rdb'),
+ makeSuite(TxnMgrTest),
+ ))
if __name__=='__main__':
main(defaultTest='test_suite')
More information about the Zope3-Checkins
mailing list