Commit c26233f8 authored by tlotze's avatar tlotze

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

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@102146 62d5b8a3-27da-0310-9561-8e5933582275
parent 775f3058
......@@ -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