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'])
_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins