Skip to content

Commit

Permalink
Unconditionally cleanup temp folder in poolRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos authored and Martin Larralde committed Nov 15, 2017
1 parent d260d27 commit 185b526
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions green/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ def poolRunner(target, queue, coverage_number=None, omit_patterns=[]): # pragma

def cleanup():
# Restore the state of the temp directory
if sys.version_info[0] == 2: # pragma: no cover
shutil.rmtree(tempfile.tempdir, ignore_errors=True)
shutil.rmtree(tempfile.tempdir, ignore_errors=True)
tempfile.tempdir = saved_tempdir
queue.put(None)
# Finish coverage
Expand Down

0 comments on commit 185b526

Please sign in to comment.