support.temp_dir(): call support.rmtree() instead of shutil.rmtree()
This commit is contained in:
parent
3899b549e3
commit
e40390473d
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue