]> granicus.if.org Git - python/commitdiff
support.temp_dir(): call support.rmtree() instead of shutil.rmtree()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 24 Mar 2016 16:42:10 +0000 (17:42 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 24 Mar 2016 16:42:10 +0000 (17:42 +0100)
Lib/test/support/__init__.py

index a2ef93d5b8887d66468c3633476ce4c268da364f..7914943a82ee42019f66f0fd6e7cf618024ca6ab 100644 (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):