[CMF-checkins] SVN: CMF/branches/1.6/C Made unit tests close the
request properly.
Florent Guillaume
fg at nuxeo.com
Tue Dec 20 19:25:48 EST 2005
Log message for revision 40930:
Made unit tests close the request properly.
(Detected leak by running with the Zope 2.9 testrunner.)
Changed:
U CMF/branches/1.6/CHANGES.txt
U CMF/branches/1.6/CMFCore/tests/base/testcase.py
U CMF/branches/1.6/CMFCore/tests/testCookieCrumbler.py
-=-
Modified: CMF/branches/1.6/CHANGES.txt
===================================================================
--- CMF/branches/1.6/CHANGES.txt 2005-12-21 00:05:31 UTC (rev 40929)
+++ CMF/branches/1.6/CHANGES.txt 2005-12-21 00:25:48 UTC (rev 40930)
@@ -17,3 +17,5 @@
in CMF 2.0.
- Reordered base classes of File and Image, to allow use of super().
+
+ - Made unit tests close the request properly.
Modified: CMF/branches/1.6/CMFCore/tests/base/testcase.py
===================================================================
--- CMF/branches/1.6/CMFCore/tests/base/testcase.py 2005-12-21 00:05:31 UTC (rev 40929)
+++ CMF/branches/1.6/CMFCore/tests/base/testcase.py 2005-12-21 00:25:48 UTC (rev 40930)
@@ -125,6 +125,9 @@
self.REQUEST = root.REQUEST
self.RESPONSE = root.REQUEST.RESPONSE
+ def tearDown(self):
+ self.REQUEST.close()
+ TransactionalTest.tearDown(self)
class SecurityTest( TestCase ):
Modified: CMF/branches/1.6/CMFCore/tests/testCookieCrumbler.py
===================================================================
--- CMF/branches/1.6/CMFCore/tests/testCookieCrumbler.py 2005-12-21 00:05:31 UTC (rev 40929)
+++ CMF/branches/1.6/CMFCore/tests/testCookieCrumbler.py 2005-12-21 00:25:48 UTC (rev 40930)
@@ -93,6 +93,7 @@
def tearDown(self):
+ self.req.close()
noSecurityManager()
More information about the CMF-checkins
mailing list