[CMF-checkins] SVN: CMF/trunk/CMFCalendar/tests/test_Calendar.py - clean up correctly after changing Skinnable.SKINDATA

Yvo Schubbe y.2005- at wcm-solutions.de
Fri Sep 9 07:44:47 EDT 2005


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

Changed:
  U   CMF/trunk/CMFCalendar/tests/test_Calendar.py

-=-
Modified: CMF/trunk/CMFCalendar/tests/test_Calendar.py
===================================================================
--- CMF/trunk/CMFCalendar/tests/test_Calendar.py	2005-09-09 11:43:40 UTC (rev 38422)
+++ CMF/trunk/CMFCalendar/tests/test_Calendar.py	2005-09-09 11:44:47 UTC (rev 38423)
@@ -30,6 +30,7 @@
 from Products.Transience.Transience import TransientObjectContainer
 from Testing.makerequest import makerequest
 import transaction
+from Products.CMFCore import Skinnable
 
 
 class CalendarTests(unittest.TestCase):
@@ -75,6 +76,7 @@
 class CalendarRequestTests(unittest.TestCase):
 
     def setUp(self):
+        self._oldSkindata = Skinnable.SKINDATA.copy()
         transaction.begin()
 
         app = self.app = makerequest(Zope2.app())
@@ -101,6 +103,7 @@
         noSecurityManager()
         transaction.abort()
         self.app._p_jar.close()
+        Skinnable.SKINDATA = self._oldSkindata
 
     def _testURL(self,url,params=None):
         Site = self.Site



More information about the CMF-checkins mailing list