summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/support.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-02-14 14:35:51 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-02-14 14:35:51 (GMT)
commitc1375d5e0168450b7411227ad3b95286aa1d70b4 (patch)
treedc4ab4ce5a44dfe26d8d930aee2418b002d52863 /Lib/distutils/tests/support.py
parent9e8dbbcdcd462efc8f50008c7182dd399de89097 (diff)
downloadcpython-c1375d5e0168450b7411227ad3b95286aa1d70b4.zip
cpython-c1375d5e0168450b7411227ad3b95286aa1d70b4.tar.gz
cpython-c1375d5e0168450b7411227ad3b95286aa1d70b4.tar.bz2
Merged revisions 69609 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69609 | tarek.ziade | 2009-02-14 15:10:23 +0100 (Sat, 14 Feb 2009) | 1 line Fix for #5257: refactored all tests in distutils, so they use a temporary directory. ........
Diffstat (limited to 'Lib/distutils/tests/support.py')
-rw-r--r--Lib/distutils/tests/support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py
index 91e704c..48bcbcc 100644
--- a/Lib/distutils/tests/support.py
+++ b/Lib/distutils/tests/support.py
@@ -1,5 +1,5 @@
"""Support code for distutils test cases."""
-
+import os
import shutil
import tempfile
@@ -31,7 +31,7 @@ class TempdirManager(object):
super().tearDown()
while self.tempdirs:
d = self.tempdirs.pop()
- shutil.rmtree(d)
+ shutil.rmtree(d, os.name in ('nt', 'cygwin'))
def mkdtemp(self):
"""Create a temporary directory that will be cleaned up.