Log message for revision 38422:
  - clean up correctly after changing Skinnable.SKINDATA

Changed:
  U   CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py

-=-
Modified: CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py
===================================================================
--- CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py 2005-09-09 11:43:08 UTC 
(rev 38421)
+++ CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py 2005-09-09 11:43:40 UTC 
(rev 38422)
@@ -40,6 +40,7 @@
 except ImportError:
     # BBB: for Zope 2.7
     from Products.CMFCore.utils import transaction
+from Products.CMFCore import Skinnable
 
 
 class CalendarTests(unittest.TestCase):
@@ -86,6 +87,7 @@
 
     def setUp(self):
         self._trap_warning_output()
+        self._oldSkindata = Skinnable.SKINDATA.copy()
         transaction.begin()
 
         app = self.app = makerequest(Zope2.app())
@@ -123,6 +125,7 @@
         noSecurityManager()
         transaction.abort()
         self.app._p_jar.close()
+        Skinnable.SKINDATA = self._oldSkindata
         self._free_warning_output()
 
     def _testURL(self,url,params=None):

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to