[CMF-checkins] SVN: CMF/trunk/CMFCore/tests/base/testcase.py -
hardened fake_skins tearDown
Yvo Schubbe
y.2006_ at wcm-solutions.de
Fri Apr 28 06:17:57 EDT 2006
Log message for revision 67706:
- hardened fake_skins tearDown
Changed:
U CMF/trunk/CMFCore/tests/base/testcase.py
-=-
Modified: CMF/trunk/CMFCore/tests/base/testcase.py
===================================================================
--- CMF/trunk/CMFCore/tests/base/testcase.py 2006-04-28 10:17:51 UTC (rev 67705)
+++ CMF/trunk/CMFCore/tests/base/testcase.py 2006-04-28 10:17:57 UTC (rev 67706)
@@ -259,6 +259,11 @@
self.skin_path_name = join(self.tempname,self._skinname,self._layername)
def tearDown(self):
+ self._free_warning_output()
# kill the copy
- self._free_warning_output()
- rmtree(self.tempname)
+ try:
+ rmtree(self.tempname)
+ except OSError:
+ # try again (some files might be locked temporarily)
+ time.sleep(0.1)
+ rmtree(self.tempname)
More information about the CMF-checkins
mailing list