summaryrefslogtreecommitdiff
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-21 19:19:05 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-07-21 19:19:05 +0200
commit5b25d84062c060f80ef96e2229ad115201f13792 (patch)
treee2d40a4350b874630479682ea712cff4894a0850 /Lib/test/test_pathlib.py
parent15c437539642f27b9a87ba890c275f571821f761 (diff)
downloadcpython-5b25d84062c060f80ef96e2229ad115201f13792.tar.gz
Issue #19811, #22022: test_pathlib uses support.rmtree() instead of
shutil.rmtree() to remove the temporary directory.
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index da001f049d..7f6a66dc82 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1214,7 +1214,7 @@ class _BasePathTest(object):
def setUp(self):
os.mkdir(BASE)
- self.addCleanup(shutil.rmtree, BASE)
+ self.addCleanup(support.rmtree, BASE)
os.mkdir(join('dirA'))
os.mkdir(join('dirB'))
os.mkdir(join('dirC'))
@@ -1399,7 +1399,7 @@ class _BasePathTest(object):
self._check_resolve_relative(p, P(BASE, 'dirB', 'fileB'))
# Now create absolute symlinks
d = tempfile.mkdtemp(suffix='-dirD')
- self.addCleanup(shutil.rmtree, d)
+ self.addCleanup(support.rmtree, d)
os.symlink(os.path.join(d), join('dirA', 'linkX'))
os.symlink(join('dirB'), os.path.join(d, 'linkY'))
p = P(BASE, 'dirA', 'linkX', 'linkY', 'fileB')