aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_upload_docs.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-10-21 03:38:07 -0400
committerJason R. Coombs <jaraco@jaraco.com>2012-10-21 03:38:07 -0400
commit152931a9f0fc509eab7d3c10934f6d3137651104 (patch)
tree5f937f4bd9a9d0eb01708be52b957b57c28360e2 /setuptools/tests/test_upload_docs.py
parentc586b38480483bcfa87761e859d69a732f170374 (diff)
downloadexternal_python_setuptools-152931a9f0fc509eab7d3c10934f6d3137651104.tar.gz
external_python_setuptools-152931a9f0fc509eab7d3c10934f6d3137651104.tar.bz2
external_python_setuptools-152931a9f0fc509eab7d3c10934f6d3137651104.zip
Fix failing test case on Windows (can't rmtree if a file is open in that tree)
--HG-- branch : distribute extra : rebase_source : 99e78b88c18007b410c0be28237db8341413e334
Diffstat (limited to 'setuptools/tests/test_upload_docs.py')
-rw-r--r--setuptools/tests/test_upload_docs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/tests/test_upload_docs.py b/setuptools/tests/test_upload_docs.py
index fddb755d..769f16cc 100644
--- a/setuptools/tests/test_upload_docs.py
+++ b/setuptools/tests/test_upload_docs.py
@@ -65,6 +65,8 @@ class TestUploadDocsTest(unittest.TestCase):
zip_file = zipfile.ZipFile(tmp_file) # woh...
assert zip_file.namelist() == ['index.html']
+
+ zip_file.close()
finally:
shutil.rmtree(tmp_dir)