[CMF-checkins] SVN: CMF/branches/1.5/C backported r40931 from trunk:
Yvo Schubbe
y.2006_ at wcm-solutions.de
Wed Jan 11 08:50:38 EST 2006
Log message for revision 41262:
backported r40931 from trunk:
- Made unit tests close the request properly.
Changed:
U CMF/branches/1.5/CHANGES.txt
U CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py
U CMF/branches/1.5/CMFCore/tests/base/testcase.py
U CMF/branches/1.5/CMFCore/tests/testCookieCrumbler.py
-=-
Modified: CMF/branches/1.5/CHANGES.txt
===================================================================
--- CMF/branches/1.5/CHANGES.txt 2006-01-11 00:48:30 UTC (rev 41261)
+++ CMF/branches/1.5/CHANGES.txt 2006-01-11 13:50:36 UTC (rev 41262)
@@ -9,6 +9,8 @@
Others
+ - Made unit tests close the request properly.
+
- Made cut / copy / paste tests more independent from implementation
details of '_verifyObjectPaste'.
Modified: CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py
===================================================================
--- CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py 2006-01-11 00:48:30 UTC (rev 41261)
+++ CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py 2006-01-11 13:50:36 UTC (rev 41262)
@@ -122,6 +122,7 @@
app.session_data_manager.getSessionData )
def tearDown(self):
+ self.app.REQUEST.close()
noSecurityManager()
transaction.abort()
self.app._p_jar.close()
Modified: CMF/branches/1.5/CMFCore/tests/base/testcase.py
===================================================================
--- CMF/branches/1.5/CMFCore/tests/base/testcase.py 2006-01-11 00:48:30 UTC (rev 41261)
+++ CMF/branches/1.5/CMFCore/tests/base/testcase.py 2006-01-11 13:50:36 UTC (rev 41262)
@@ -102,6 +102,9 @@
self.REQUEST = root.REQUEST
self.RESPONSE = root.REQUEST.RESPONSE
+ def tearDown(self):
+ self.REQUEST.close()
+ TransactionalTest.tearDown(self)
class SecurityTest( TestCase ):
@@ -126,6 +129,10 @@
SecurityTest.setUp(self)
self.root = makerequest(self.root)
+ def tearDown(self):
+ self.root.REQUEST.close()
+ SecurityTest.tearDown(self)
+
try:
__file__
except NameError:
Modified: CMF/branches/1.5/CMFCore/tests/testCookieCrumbler.py
===================================================================
--- CMF/branches/1.5/CMFCore/tests/testCookieCrumbler.py 2006-01-11 00:48:30 UTC (rev 41261)
+++ CMF/branches/1.5/CMFCore/tests/testCookieCrumbler.py 2006-01-11 13:50:36 UTC (rev 41262)
@@ -93,6 +93,7 @@
def tearDown(self):
+ self.req.close()
noSecurityManager()
More information about the CMF-checkins
mailing list