]> granicus.if.org Git - python/commitdiff
use support.rmtree instead of shutil (closes #19614)
authorBenjamin Peterson <benjamin@python.org>
Wed, 12 Mar 2014 20:07:01 +0000 (15:07 -0500)
committerBenjamin Peterson <benjamin@python.org>
Wed, 12 Mar 2014 20:07:01 +0000 (15:07 -0500)
Patch by Sean Rodman.

Lib/test/test_support.py

index 5913044877c1def3b333d516ecbaa459583b7d46..cb6f84e73dbbb726f439307421dea6186c581c90 100644 (file)
@@ -102,7 +102,7 @@ class TestSupport(unittest.TestCase):
                 self.assertTrue(os.path.isdir(path))
             self.assertFalse(os.path.isdir(path))
         finally:
-            shutil.rmtree(parent_dir)
+            support.rmtree(parent_dir)
 
     def test_temp_dir__path_none(self):
         """Test passing no path."""