SVN: CMF/branches/1.6/CMFTopic/tests/test_DateC.py Unit tests which have 'setUp' *must* have 'tearDown'; this one was leaking ZODB connections.
Tres Seaver <[email protected]> Tue, 24 Apr 2007 16:25:02 -0400 (EDT)
| Newsgroups | gmane.comp.web.zope.cmf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Log message for revision 74721:
Unit tests which have 'setUp' *must* have 'tearDown'; this one was leaking ZODB connections.
Changed:
U CMF/branches/1.6/CMFTopic/tests/test_DateC.py
-=-
Modified: CMF/branches/1.6/CMFTopic/tests/test_DateC.py
===================================================================
--- CMF/branches/1.6/CMFTopic/tests/test_DateC.py 2007-04-24 20:19:37 UTC (rev 74720)
+++ CMF/branches/1.6/CMFTopic/tests/test_DateC.py 2007-04-24 20:25:01 UTC (rev 74721)
@@ -191,7 +191,11 @@
dummy_ob.modified_date = self.now + i
dummy_ob.reindexObject()
+ def tearDown(self):
+ RequestTest.tearDown(self)
+ PlacelessSetup.tearDown(self)
+
def test_Harness(self):
# Make sure the test harness is set up OK
ob_values = self.site.objectValues(['Dummy'])