[Checkins] SVN: ZODB/trunk/src/ZODB/tests/testConfig.py Added standard setup and teardown.
Jim Fulton
jim at zope.com
Mon May 4 11:04:49 EDT 2009
Log message for revision 99715:
Added standard setup and teardown.
Changed:
U ZODB/trunk/src/ZODB/tests/testConfig.py
-=-
Modified: ZODB/trunk/src/ZODB/tests/testConfig.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testConfig.py 2009-05-04 15:00:13 UTC (rev 99714)
+++ ZODB/trunk/src/ZODB/tests/testConfig.py 2009-05-04 15:04:49 UTC (rev 99715)
@@ -18,14 +18,16 @@
import transaction
import ZODB.config
+import ZODB.tests.util
from ZODB.POSException import ReadOnlyError
-class ConfigTestBase(unittest.TestCase):
+class ConfigTestBase(ZODB.tests.util.TestCase):
def _opendb(self, s):
return ZODB.config.databaseFromString(s)
def tearDown(self):
+ ZODB.tests.util.TestCase.tearDown(self)
if getattr(self, "storage", None) is not None:
self.storage.cleanup()
@@ -222,7 +224,8 @@
def test_suite():
suite = unittest.TestSuite()
- suite.addTest(doctest.DocTestSuite())
+ suite.addTest(doctest.DocTestSuite(
+ setUp=ZODB.tests.util.setUp, tearDown=ZODB.tests.util.tearDown))
suite.addTest(unittest.makeSuite(ZODBConfigTest))
suite.addTest(unittest.makeSuite(ZEOConfigTest))
return suite
More information about the Checkins
mailing list