libgit2/pygit2 — Issue #60: unittest didn't passed under Windows.
Author: dreamkxd
Created: 2012-02-17 15:49:44+00:00
State: open

D:\CI\bld\vcs\pygit2>python setup.py test
running test
running build
running build_py
running build_ext
.............E
======================================================================
ERROR: test_read_tree (test.test_index.IndexTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python32\lib\shutil.py", line 281, in rmtree
os.remove(fullname)
WindowsError: [Error 5] Access is denied: 'c:\\users\\dreamkxd\\appdata\\local\\temp\\tmp6rzd40\\testrepo\\.git\\objects\\pack\\pack-e6fbc15b315a0eab6
005c44e5b7054b1f0043f39.idx'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\CI\bld\vcs\pygit2\test\utils.py", line 65, in tearDown
rmtree(self._temp_dir)
File "D:\CI\bld\vcs\pygit2\test\utils.py", line 54, in rmtree
shutil.rmtree(path, onerror=lambda func, path, e: force_rm_handle(path))
File "C:\Python32\lib\shutil.py", line 278, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python32\lib\shutil.py", line 278, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python32\lib\shutil.py", line 278, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python32\lib\shutil.py", line 278, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python32\lib\shutil.py", line 283, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "D:\CI\bld\vcs\pygit2\test\utils.py", line 54, in
shutil.rmtree(path, onerror=lambda func, path, e: force_rm_handle(path))
File "D:\CI\bld\vcs\pygit2\test\utils.py", line 47, in force_rm_handle
os.remove(path)
WindowsError: [Error 5] Access is denied: 'c:\\users\\dreamkxd\\appdata\\local\\temp\\tmp6rzd40\\testrepo\\.git\\objects\\pack\\pack-e6fbc15b315a0eab6
005c44e5b7054b1f0043f39.idx'

----------------------------------------------------------------------
Ran 14 tests in 1.240s

FAILED (errors=1)

D:\CI\bld\vcs\pygit2>notepad test\test_index.py

D:\CI\bld\vcs\pygit2>notepad pygit2.c

D:\CI\bld\vcs\pygit2>