Commit 841305a5 authored by Thomas Lotze's avatar Thomas Lotze

fixed test failures on Windows due to a temporary file left open (thanks to Yvo Schubbe)

parent c6e32ef6
......@@ -154,6 +154,7 @@ class Download(object):
urllib._urlopener = url_opener
handle, tmp_path = tempfile.mkstemp(prefix='buildout-')
tmp_path, headers = urllib.urlretrieve(url, tmp_path)
os.close(handle)
if not check_md5sum(tmp_path, md5sum):
os.remove(tmp_path)
raise ChecksumError(
......
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