Commit 1672e10d authored by Hirokazu Yamamoto's avatar Hirokazu Yamamoto

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

Reviewed by Benjamin Peterson.
parent 56d380de
...@@ -62,8 +62,8 @@ class BuildExtTestCase(unittest.TestCase): ...@@ -62,8 +62,8 @@ class BuildExtTestCase(unittest.TestCase):
# Get everything back to normal # Get everything back to normal
test_support.unload('xx') test_support.unload('xx')
sys.path = self.sys_path sys.path = self.sys_path
# XXX on Windows the test leaves a directory with xx.pyd in TEMP # XXX on Windows the test leaves a directory with xx module in TEMP
shutil.rmtree(self.tmp_dir, False if os.name != "nt" else True) shutil.rmtree(self.tmp_dir, os.name == 'nt' or sys.platform == 'cygwin')
def test_suite(): def test_suite():
if not sysconfig.python_build: if not sysconfig.python_build:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment