Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unittest didn't passed under Windows. #60

Closed
lygstate opened this issue Feb 17, 2012 · 2 comments
Closed

Unittest didn't passed under Windows. #60

lygstate opened this issue Feb 17, 2012 · 2 comments

Comments

@lygstate
Copy link
Contributor

Updated test result:


D:\CI\bld\vcs\pygit2>python setup.py test
running test
running build
running build_py
running build_ext
.............E....................................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\\tmpjzh5wp\\testrepo\\.git\\objects\\pack\\pack-e6fbc15b315a0eab6005c44e5b7054b1f0043f39.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(func, path, e))
  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 <lambda>
    shutil.rmtree(path, onerror=lambda func, path, e: force_rm_handle(func, path, e))
  File "D:\CI\bld\vcs\pygit2\test\utils.py", line 47, in force_rm_handle
    remove_path(path)
WindowsError: [Error 5] Access is denied: 'c:\\users\\dreamkxd\\appdata\\local\\temp\\tmpjzh5wp\\testrepo\\.git\\objects\\pack\\pack-e6fbc15b315a0eab6005c44e5b7054b1f0043f39.idx'

======================================================================
ERROR: test_new_tag (test.test_tag.TagTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\CI\bld\vcs\pygit2\test\test_tag.py", line 70, in test_new_tag
    tagger, message)
pygit2.GitError: af431: Failed to create tag
        - Failed to retrieve tag reference
        - Failed to lookup reference
        - Failed to lookup reference
        - Failed to lookup reference from packfile
        - Failed to load packed references
        - Failed to parse OID of packed reference
        - Failed to lookup loose reference

----------------------------------------------------------------------
Ran 62 tests in 5.182s

FAILED (errors=2)

D:\CI\bld\vcs\pygit2>

@jdavid
Copy link
Member

jdavid commented Feb 19, 2012

This is were I stop last time I worked with pygit2 on Windows.

The bug can be fixed either in libgit2 or in pygit2. Check libgit2/libgit2#462

To me it is better to fix it in libgit2, but I will accept a (temporary) solution just for pygit2.

@lygstate
Copy link
Contributor Author

lygstate commented Apr 7, 2012

@jdavid
I can be sure now, that
ERROR: test_read_tree (test.test_index.IndexTest)
is because the problem pygit2. there is circular references betweeen Repository and Index.
so remove the reference, the problem is resolved. Please check it carefully!. You reject it before.

ERROR: test_new_tag (test.test_tag.TagTest)

The cause of test_new_tag still unknow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants