Skip to content

Unittest didn't passed under Windows. #60

@lygstate

Description

@lygstate

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions