[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/sqlscript/ Add
missing cleanup code to zope.app.sqlscript unit tests.
Marius Gedminas
marius at pov.lt
Sat Jan 20 07:56:53 EST 2007
Log message for revision 72131:
Add missing cleanup code to zope.app.sqlscript unit tests.
Changed:
U Zope3/trunk/src/zope/app/sqlscript/browser/tests.py
U Zope3/trunk/src/zope/app/sqlscript/tests/test_sqlscript.py
-=-
Modified: Zope3/trunk/src/zope/app/sqlscript/browser/tests.py
===================================================================
--- Zope3/trunk/src/zope/app/sqlscript/browser/tests.py 2007-01-20 12:54:42 UTC (rev 72130)
+++ Zope3/trunk/src/zope/app/sqlscript/browser/tests.py 2007-01-20 12:56:52 UTC (rev 72131)
@@ -17,10 +17,13 @@
"""
import unittest
from zope.testing import doctest
+from zope.app.testing import setup
def test_suite():
return unittest.TestSuite((
- doctest.DocTestSuite('zope.app.sqlscript.browser.sqlscript'),
+ doctest.DocTestSuite('zope.app.sqlscript.browser.sqlscript',
+ setUp=setup.placelessSetUp,
+ tearDown=setup.placelessTearDown),
))
if __name__ == '__main__': unittest.main()
Modified: Zope3/trunk/src/zope/app/sqlscript/tests/test_sqlscript.py
===================================================================
--- Zope3/trunk/src/zope/app/sqlscript/tests/test_sqlscript.py 2007-01-20 12:54:42 UTC (rev 72130)
+++ Zope3/trunk/src/zope/app/sqlscript/tests/test_sqlscript.py 2007-01-20 12:56:52 UTC (rev 72131)
@@ -149,7 +149,7 @@
AnnotationCacheable)
def tearDown(self):
- pass
+ super(SQLScriptTest, self).tearDown()
def _getScript(self):
return SQLScript("my_connection",
More information about the Zope3-Checkins
mailing list