[Erp5-report] r39490 nicolas.dumazet - /erp5/trunk/products/ERP5Type/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 25 10:09:03 CEST 2010


Author: nicolas.dumazet
Date: Mon Oct 25 10:09:01 2010
New Revision: 39490

URL: http://svn.erp5.org?rev=39490&view=rev
Log:
depending on the test instance, unit_test/import can be broken

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

Modified: erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py?rev=39490&r1=39489&r2=39490&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py [utf8] Mon Oct 25 10:09:01 2010
@@ -56,7 +56,11 @@ class TestPortalTypeClass(ERP5TypeTestCa
 
     import_path = os.path.join(os.environ['INSTANCE_HOME'], 'import')
     if not os.path.exists(import_path):
+      if os.path.islink(import_path):
+        # broken symlink
+        os.unlink(import_path)
       os.mkdir(import_path)
+
     shutil.copy(zexp_path, import_path)
 
     person_module = self.getPortal().person_module




More information about the Erp5-report mailing list