Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618476 - dev-python/pygit2-0.25.0 tests require network access
Summary: dev-python/pygit2-0.25.0 tests require network access
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-14 22:38 UTC by Mike Gilbert
Modified: 2018-05-27 08:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2017-05-14 22:38:29 UTC
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
Comment 1 Juan David Ibáñez Palomar 2017-12-01 11:06:55 UTC
Should be fixed with the new release 0.26.2