Fix win failures with temporary_directory() trying to remove still-open files by warning if this happens rather than failing.
@@ -47,8 +47,11 @@ def temporary_directory():
try:
yield tmp_dir
finally:
+ try:
shutil.rmtree(tmp_dir)
-
+ except Exception as e:
+ # Warn that we weren't able to clean up completely
+ logger.warning(e)
# =============================================================================
# BENCHMARKING UTILITIES
