[CMF-checkins] 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 tseaver at palladion.com
Tue Apr 24 16:25:02 EDT 2007


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'])



More information about the CMF-checkins mailing list