support.temp_dir(): call support.rmtree() instead of shutil.rmtree()

This commit is contained in:
Victor Stinner 2016-03-24 17:42:10 +01:00
parent 3899b549e3
commit e40390473d
1 changed files with 1 additions and 1 deletions

View File

@ -902,7 +902,7 @@ def temp_dir(path=None, quiet=False):
yield path
finally:
if dir_created:
shutil.rmtree(path)
rmtree(path)
@contextlib.contextmanager
def change_cwd(path, quiet=False):