]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #3925: Ignores shutil.rmtree error on cygwin too.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 21 Sep 2008 20:48:41 +0000 (20:48 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 21 Sep 2008 20:48:41 +0000 (20:48 +0000)
Reviewed by Benjamin Peterson.

Lib/distutils/tests/test_build_ext.py

index a658f1aa1cee983d611a5211da6a3e8fd20c5b06..31b8b481852535287b0039da36bdfc7bd148ac6c 100644 (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: