Issue #3925: Ignores shutil.rmtree error on cygwin too.

Reviewed by Benjamin Peterson.
This commit is contained in:
Hirokazu Yamamoto 2008-09-21 20:48:41 +00:00
parent 56d380de1d
commit 1672e10dc2
1 changed files with 2 additions and 2 deletions

View File

@ -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: