Commit 34c2062a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

test: always copy custom_zodb.py, otherwise Python 3 incompatible one remains forever.

parent 5a663f54
...@@ -214,14 +214,13 @@ def initializeInstanceHome(tests_framework_home, ...@@ -214,14 +214,13 @@ def initializeInstanceHome(tests_framework_home,
else: else:
os.symlink(src, d) os.symlink(src, d)
d = 'custom_zodb.py' d = 'custom_zodb.py'
if not os.path.exists(d): src = os.path.join(tests_framework_home, d)
src = os.path.join(tests_framework_home, d) if os.path.exists(d):
if os.path.islink(d): os.remove(d)
os.remove(d) if WIN:
if WIN: shutil.copy(src, d)
shutil.copy(src, d) else:
else: os.symlink(src, d)
os.symlink(src, d)
finally: finally:
os.chdir(old_pwd) os.chdir(old_pwd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment