classification
Title: test_distutils fails on cygwin
Type: Stage:
Components: Tests Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, ocean-city
Priority: normal Keywords: easy, patch

Created on 2008-09-21 20:12 by ocean-city, last changed 2008-09-21 20:53 by ocean-city. This issue is now closed.

Files
File name Uploaded Description Edit
test_distutils.patch ocean-city, 2008-09-21 20:12
Messages (3)
msg73525 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2008-09-21 20:12
Currently msvc build ignores shutil.rmtree error, this workaround is
needed for cygwin too.

======================================================================
ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/WhiteRabbit/python-dev/trunk/Lib/distutils/tests/test_build_ext.py
", line 66, in tearDown
    shutil.rmtree(self.tmp_dir, False if os.name != "nt" else True)
  File "/home/WhiteRabbit/python-dev/trunk/Lib/shutil.py", line 221, in
rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "/home/WhiteRabbit/python-dev/trunk/Lib/shutil.py", line 219, in
rmtree
    os.remove(fullname)
OSError: [Errno 13] Permission denied:
'/cygdrive/c/DOCUME~1/WHITER~1/LOCALS~1/T
emp/pythontest_YRSZAn/xx.dll'
msg73526 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-21 20:27
Go ahead.
msg73529 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2008-09-21 20:53
Thanks, fixed in r66542(trunk) and r66543(py3k).
History
Date User Action Args
2008-09-21 20:53:10ocean-citysetstatus: open -> closed
resolution: fixed
messages: + msg73529
2008-09-21 20:29:23benjamin.petersonsetkeywords: - needs review
2008-09-21 20:27:49benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg73526
2008-09-21 20:12:05ocean-citycreate