diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index 850ad246762485ce538a2254fc57343397e2f4e3..45e0c8eeefb8421716f31e88f784ba9e5960957b 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -214,14 +214,13 @@ def initializeInstanceHome(tests_framework_home, else: os.symlink(src, d) d = 'custom_zodb.py' - if not os.path.exists(d): - src = os.path.join(tests_framework_home, d) - if os.path.islink(d): - os.remove(d) - if WIN: - shutil.copy(src, d) - else: - os.symlink(src, d) + src = os.path.join(tests_framework_home, d) + if os.path.exists(d): + os.remove(d) + if WIN: + shutil.copy(src, d) + else: + os.symlink(src, d) finally: os.chdir(old_pwd)