From: Hirokazu Yamamoto Date: Sun, 21 Sep 2008 20:48:41 +0000 (+0000) Subject: Issue #3925: Ignores shutil.rmtree error on cygwin too. X-Git-Tag: v2.6~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1672e10dc2d7b70ee1830fbe0294e81f25560387;p=thirdparty%2FPython%2Fcpython.git 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 a658f1aa1cee..31b8b4818525 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: