{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/pygit2/issues/655","repository_url":"https://api.github.com/repos/libgit2/pygit2","labels_url":"https://api.github.com/repos/libgit2/pygit2/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/pygit2/issues/655/comments","events_url":"https://api.github.com/repos/libgit2/pygit2/issues/655/events","html_url":"https://github.com/libgit2/pygit2/issues/655","id":181811066,"number":655,"title":"Windows tests fail","user":{"login":"techtonik","id":515889,"avatar_url":"https://avatars.githubusercontent.com/u/515889?v=3","gravatar_id":"","url":"https://api.github.com/users/techtonik","html_url":"https://github.com/techtonik","followers_url":"https://api.github.com/users/techtonik/followers","following_url":"https://api.github.com/users/techtonik/following{/other_user}","gists_url":"https://api.github.com/users/techtonik/gists{/gist_id}","starred_url":"https://api.github.com/users/techtonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techtonik/subscriptions","organizations_url":"https://api.github.com/users/techtonik/orgs","repos_url":"https://api.github.com/users/techtonik/repos","events_url":"https://api.github.com/users/techtonik/events{/privacy}","received_events_url":"https://api.github.com/users/techtonik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-08T07:40:39Z","updated_at":"2016-10-13T17:42:11Z","closed_at":null,"body":"https://ci.appveyor.com/project/jdavid/pygit2/branch/master/job/pe30m4i7qwl2br64\r\n\r\nWindows has a strict requirements that all files need to be closed when removing dir. https://superuser.com/questions/2937/how-do-i-delete-a-folder-thats-in-use\r\n\r\n```\r\n======================================================================\r\nERROR: test_write_commit (test.test_archive.ArchiveTest)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"C:\\Python35\\lib\\shutil.py\", line 381, in _rmtree_unsafe\r\n    os.unlink(fullname)\r\nPermissionError: [WinError 5] Access is denied: 'C:\\\\Users\\\\appveyor\\\\AppData\\\\Local\\\\Temp\\\\1\\\\tmp0up7s6rm\\\\testrepo\\\\.git\\\\objects\\\\pack\\\\pack-e6fbc15b315a0eab6005c44e5b7054b1f0043f39.idx'\r\nDuring handling of the above exception, another exception occurred:\r\nTraceback (most recent call last):\r\n  File \"C:\\projects\\pygit2\\test\\utils.py\", line 135, in tearDown\r\n    self.repo_ctxtmgr.__exit__(None, None, None)\r\n  File \"C:\\projects\\pygit2\\test\\utils.py\", line 86, in __exit__\r\n    rmtree(self.temp_dir)\r\n  File \"C:\\projects\\pygit2\\test\\utils.py\", line 65, in rmtree\r\n    shutil.rmtree(path, onerror=onerror)\r\n  File \"C:\\Python35\\lib\\shutil.py\", line 488, in rmtree\r\n    return _rmtree_unsafe(path, onerror)\r\n  File \"C:\\Python35\\lib\\shutil.py\", line 378, in _rmtree_unsafe\r\n    _rmtree_unsafe(fullname, onerror)\r\n  File \"C:\\Python35\\lib\\shutil.py\", line 378, in _rmtree_unsafe\r\n    _rmtree_unsafe(fullname, onerror)\r\n  File \"C:\\Python35\\lib\\shutil.py\", line 378, in _rmtree_unsafe\r\n    _rmtree_unsafe(fullname, onerror)\r\n  File \"C:\\Python35\\lib\\shutil.py\", line 378, in _rmtree_unsafe\r\n    _rmtree_unsafe(fullname, onerror)\r\n  File \"C:\\Python35\\lib\\shutil.py\", line 383, in _rmtree_unsafe\r\n    onerror(os.unlink, fullname, sys.exc_info())\r\n  File \"C:\\projects\\pygit2\\test\\utils.py\", line 64, in <lambda>\r\n    onerror = lambda func, path, e: force_rm_handle(func, path, e)\r\n  File \"C:\\projects\\pygit2\\test\\utils.py\", line 47, in force_rm_handle\r\n    remove_path(path)\r\nPermissionError: [WinError 5] Access is denied: 'C:\\\\Users\\\\appveyor\\\\AppData\\\\Local\\\\Temp\\\\1\\\\tmp0up7s6rm\\\\testrepo\\\\.git\\\\objects\\\\pack\\\\pack-e6fbc15b315a0eab6005c44e5b7054b1f0043f39.idx'\r\n```"},"comment":{"url":"https://api.github.com/repos/libgit2/pygit2/issues/comments/253584715","html_url":"https://github.com/libgit2/pygit2/issues/655#issuecomment-253584715","issue_url":"https://api.github.com/repos/libgit2/pygit2/issues/655","id":253584715,"user":{"login":"fourplusone","id":25514,"avatar_url":"https://avatars.githubusercontent.com/u/25514?v=3","gravatar_id":"","url":"https://api.github.com/users/fourplusone","html_url":"https://github.com/fourplusone","followers_url":"https://api.github.com/users/fourplusone/followers","following_url":"https://api.github.com/users/fourplusone/following{/other_user}","gists_url":"https://api.github.com/users/fourplusone/gists{/gist_id}","starred_url":"https://api.github.com/users/fourplusone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourplusone/subscriptions","organizations_url":"https://api.github.com/users/fourplusone/orgs","repos_url":"https://api.github.com/users/fourplusone/repos","events_url":"https://api.github.com/users/fourplusone/events{/privacy}","received_events_url":"https://api.github.com/users/fourplusone/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T17:42:11Z","updated_at":"2016-10-13T17:42:11Z","body":"`try { & $env:PYTHON setup.py nosetests --with-xunit } catch {}` in appveyor.yaml catches all errors during the test. maybe one should remove the try...catch... statement"}}
{"actor":{"display_login":"fourplusone"}}