Skip to content

Commit

Permalink
And here I thought I was done ... (Windows is not my thing)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Nov 11, 2015
1 parent 556397d commit c4841bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pip_accel/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def tearDownModule():
while TEMPORARY_DIRECTORIES:
directory = TEMPORARY_DIRECTORIES.pop(0)
logger.debug("Cleaning up temporary directory: %s", directory)
shutil.rmtree(directory, onerror=delete_read_only)
try:
shutil.rmtree(directory, onerror=delete_read_only)
except Exception:
logger.exception("Failed to cleanup temporary directory!")


def delete_read_only(action, pathname, exc_info):
Expand Down

0 comments on commit c4841bd

Please sign in to comment.