[Erp5-report] r24093 - /erp5/trunk/products/ERP5Type/tests/custom_zodb.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 8 11:40:48 CEST 2008


Author: jerome
Date: Wed Oct  8 11:40:45 2008
New Revision: 24093

URL: http://svn.erp5.org?rev=24093&view=rev
Log:
previous change was wrong, we were not removing the directory, but everythinh inside

Modified:
    erp5/trunk/products/ERP5Type/tests/custom_zodb.py

Modified: erp5/trunk/products/ERP5Type/tests/custom_zodb.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/custom_zodb.py?rev=24093&r1=24092&r2=24093&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/custom_zodb.py (original)
+++ erp5/trunk/products/ERP5Type/tests/custom_zodb.py Wed Oct  8 11:40:45 2008
@@ -1,5 +1,6 @@
 import os
 import shutil
+import glob
 import ZODB
 from ZODB.DemoStorage import DemoStorage
 from ZODB.FileStorage import FileStorage
@@ -30,7 +31,8 @@
   for dir in ('Constraint', 'Document', 'PropertySheet', 'Extensions'):
     full_path = os.path.join(instance_home, dir)
     if os.path.exists(full_path):
-      shutil.rmtree(full_path)
+      for f in glob.glob('%s/*' % full_path):
+        os.unlink(f)
   if os.path.exists(new_data_fs_path):
     os.remove(new_data_fs_path)
   Storage = FileStorage(new_data_fs_path)




More information about the Erp5-report mailing list