Skip to content

Commit

Permalink
Ignore failure to cleanup on Python 2 so at least tests can work. Res…
Browse files Browse the repository at this point in the history
…olves #221. Bump to 3.2.1
  • Loading branch information
CleanCut committed May 4, 2020
1 parent f2d0af7 commit 5e42e4d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,10 @@
# Version 3.1.2
# 4 May 2019

- Fix a crash that could occur during cleanup on unusual filesystems on
Python 2. Note that Python 2 is still not supported...but might as well fix
stuff if it is easy to fix. :-) Resolves #221.

# Version 3.1.1
## 22 April 2019

Expand Down
2 changes: 1 addition & 1 deletion green/VERSION
@@ -1 +1 @@
3.1.1
3.1.2
5 changes: 4 additions & 1 deletion green/process.py
Expand Up @@ -270,7 +270,10 @@ def cleanup():
# Restore the state of the temp directory
# TODO: Make this not necessary on macOS+Python3 (see #173)
if sys.version_info[0] == 2:
shutil.rmtree(tempfile.tempdir, ignore_errors=True)
try:
shutil.rmtree(tempfile.tempdir, ignore_errors=True)
except:
pass
tempfile.tempdir = saved_tempdir
queue.put(None)
# Finish coverage
Expand Down

0 comments on commit 5e42e4d

Please sign in to comment.