With FEATURES=network-sandbox 3 errors occur. ====================================================================== ERROR: test_user_pass (test.test_credentials.CallableCredentialTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0/test/test_credentials.py", line 103, in test_user_pass remote.fetch(callbacks=callbacks) File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0-python3_5/lib/pygit2/remote.py", line 375, in fetch check_error(err) File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0-python3_5/lib/pygit2/errors.py", line 64, in check_error raise GitError(message) _pygit2.GitError: curl error: Could not resolve host: bitbucket.org ====================================================================== ERROR: test_bad_cred_type (test.test_credentials.CredentialCallback) ---------------------------------------------------------------------- Traceback (most recent call last): File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0/test/test_credentials.py", line 93, in test_bad_cred_type self.assertRaises(TypeError, lambda: remote.fetch(callbacks=MyCallbacks())) File "/usr/lib64/python3.5/unittest/case.py", line 728, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib64/python3.5/unittest/case.py", line 177, in handle callable_obj(*args, **kwargs) File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0/test/test_credentials.py", line 93, in <lambda> self.assertRaises(TypeError, lambda: remote.fetch(callbacks=MyCallbacks())) File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0-python3_5/lib/pygit2/remote.py", line 375, in fetch check_error(err) File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0-python3_5/lib/pygit2/errors.py", line 64, in check_error raise GitError(message) _pygit2.GitError: curl error: Could not resolve host: github.com ====================================================================== ERROR: test_clone_with_credentials (test.test_repository.CloneRepositoryTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0/test/test_repository.py", line 544, in test_clone_with_credentials self._temp_dir, callbacks=pygit2.RemoteCallbacks(credentials=pygit2.UserPass("libgit2", "libgit2"))) File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0-python3_5/lib/pygit2/__init__.py", line 255, in clone_repository check_error(err) File "/x/portage/dev-python/pygit2-0.25.0/work/pygit2-0.25.0-python3_5/lib/pygit2/errors.py", line 64, in check_error raise GitError(message) _pygit2.GitError: curl error: Could not resolve host: bitbucket.org
Should be fixed with the new release 0.26.2