[CMF-checkins]
SVN: CMF/branches/1.5/CMFCalendar/tests/test_Calendar.py
- clean up correctly after changing Skinnable.SKINDATA
Yvo Schubbe
y.2005- at wcm-solutions.de
Fri Sep 9 07:43:40 EDT 2005
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):
More information about the CMF-checkins
mailing list