Commit c08722cb authored by Jim Fulton's avatar Jim Fulton

Added logic to make temp files writable before removing them because

read-only files can't be removed on windows.
parent a4c46daf
......@@ -7,7 +7,9 @@ find-links = http://download.zope.org/distribution/
recipe = zc.recipe.testrunner
eggs = ZODB3
initialization =
import os, tempfile, shutil
import os, tempfile, shutil, stat
[[os.chmod(os.path.join(path, f), stat.S_IWUSR) for f in files]
for (path, dirs, files) in os.walk(os.getcwd())]
if os.path.exists('tmp'): shutil.rmtree('tmp')
os.mkdir('tmp')
tempfile.tempdir = os.path.abspath('tmp')
......
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