summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-04-12 08:23:49 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2010-04-12 08:23:49 (GMT)
commit46cd93a42f917bcd0a1cc7ca62eec55e56331d6f (patch)
tree2daa0105231bfcd1d9ae8c202ae9e3a526c8deee /Lib/distutils
parent7770f145b7f8f866d08c2ed8fafb2361fa5d2f59 (diff)
downloadcpython-46cd93a42f917bcd0a1cc7ca62eec55e56331d6f.zip
cpython-46cd93a42f917bcd0a1cc7ca62eec55e56331d6f.tar.gz
cpython-46cd93a42f917bcd0a1cc7ca62eec55e56331d6f.tar.bz2
Fixed #8375 - test_distutils now checks what remains to be cleaned up during tearDown
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/support.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py
index d60da85..45c9441 100644
--- a/Lib/distutils/tests/support.py
+++ b/Lib/distutils/tests/support.py
@@ -63,6 +63,8 @@ class TempdirManager(object):
super().tearDown()
while self.tempdirs:
d = self.tempdirs.pop()
+ if not os.path.exists(d):
+ continue
shutil.rmtree(d, os.name in ('nt', 'cygwin'))
def mkdtemp(self):