use support.rmtree instead of shutil (closes #19614)

Patch by Sean Rodman.
This commit is contained in:
Benjamin Peterson 2014-03-12 15:07:01 -05:00
parent fc773a2d4b
commit bb185ab332

View 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."""