From: Hirokazu Yamamoto Date: Sun, 21 Sep 2008 20:52:42 +0000 (+0000) Subject: Merged revisions 66542 via svnmerge from X-Git-Tag: v3.0rc2~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=956ffd75af881353fd59d61eb787df1512f0b59e;p=python Merged revisions 66542 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r66542 | hirokazu.yamamoto | 2008-09-22 05:48:41 +0900 | 2 lines Issue #3925: Ignores shutil.rmtree error on cygwin too. Reviewed by Benjamin Peterson. ........ --- diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 20c10745cb..552a3d1440 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 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: