summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-21 20:48:41 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-21 20:48:41 (GMT)
commit1672e10dc2d7b70ee1830fbe0294e81f25560387 (patch)
tree3b6dbc15e8255a0a824512093cc404ebf65f70a9 /Lib
parent56d380de1d01cebb3a05e62411455cbdb08f83b9 (diff)
downloadcpython-1672e10dc2d7b70ee1830fbe0294e81f25560387.zip
cpython-1672e10dc2d7b70ee1830fbe0294e81f25560387.tar.gz
cpython-1672e10dc2d7b70ee1830fbe0294e81f25560387.tar.bz2
Issue #3925: Ignores shutil.rmtree error on cygwin too.
Reviewed by Benjamin Peterson.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/tests/test_build_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index a658f1a..31b8b48 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -62,8 +62,8 @@ class BuildExtTestCase(unittest.TestCase):
# Get everything back to normal
test_support.unload('xx')
sys.path = self.sys_path
- # XXX on Windows the test leaves a directory with xx.pyd in TEMP
- shutil.rmtree(self.tmp_dir, False if os.name != "nt" else True)
+ # XXX on Windows the test leaves a directory with xx module in TEMP
+ shutil.rmtree(self.tmp_dir, os.name == 'nt' or sys.platform == 'cygwin')
def test_suite():
if not sysconfig.python_build: