aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2017-08-18 21:03:30 +0200
committerMarius Bakke <mbakke@fastmail.com>2017-08-18 21:33:31 +0200
commit8c0c0c4defed40f4cb3139e0a887f9ed19915b1b (patch)
tree553554ba24b57bb55f621906305361ed063c7416 /gnu/packages/patches
parent1f9c2351d7c8534cc1f9b320dba7c719aecc0789 (diff)
downloadguix-8c0c0c4defed40f4cb3139e0a887f9ed19915b1b.tar.gz
guix-8c0c0c4defed40f4cb3139e0a887f9ed19915b1b.zip
gnu: python-pygit2: Update to 0.26.0.
* gnu/packages/python.scm (python-pygit2): Update to 0.26.0. * gnu/packages/patches/python-pygit2-disable-network-tests.patch: Skip one more test. Use unittest.skipIf instead of deleting sections.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/python-pygit2-disable-network-tests.patch79
1 files changed, 29 insertions, 50 deletions
diff --git a/gnu/packages/patches/python-pygit2-disable-network-tests.patch b/gnu/packages/patches/python-pygit2-disable-network-tests.patch
index e46d244807..5578e4c375 100644
--- a/gnu/packages/patches/python-pygit2-disable-network-tests.patch
+++ b/gnu/packages/patches/python-pygit2-disable-network-tests.patch
@@ -1,64 +1,43 @@
Disable tests trying to look up remote servers.
diff --git a/test/test_credentials.py b/test/test_credentials.py
-index 92482d9..9a281e5 100644
--- a/test/test_credentials.py
+++ b/test/test_credentials.py
-@@ -68,39 +68,5 @@ class CredentialCreateTest(utils.NoRepoTestCase):
+@@ -68,6 +68,7 @@ class CredentialCreateTest(utils.NoRepoTestCase):
self.assertEqual((username, None, None, None), cred.credential_tuple)
--class CredentialCallback(utils.RepoTestCase):
-- def test_callback(self):
-- class MyCallbacks(pygit2.RemoteCallbacks):
-- @staticmethod
-- def credentials(url, username, allowed):
-- self.assertTrue(allowed & GIT_CREDTYPE_USERPASS_PLAINTEXT)
-- raise Exception("I don't know the password")
--
-- url = "https://github.com/github/github"
-- remote = self.repo.create_remote("github", url)
--
-- self.assertRaises(Exception, lambda: remote.fetch(callbacks=MyCallbacks()))
--
-- def test_bad_cred_type(self):
-- class MyCallbacks(pygit2.RemoteCallbacks):
-- @staticmethod
-- def credentials(url, username, allowed):
-- self.assertTrue(allowed & GIT_CREDTYPE_USERPASS_PLAINTEXT)
-- return Keypair("git", "foo.pub", "foo", "sekkrit")
--
-- url = "https://github.com/github/github"
-- remote = self.repo.create_remote("github", url)
-- self.assertRaises(TypeError, lambda: remote.fetch(callbacks=MyCallbacks()))
--
--class CallableCredentialTest(utils.RepoTestCase):
--
-- def test_user_pass(self):
-- credentials = UserPass("libgit2", "libgit2")
-- callbacks = pygit2.RemoteCallbacks(credentials=credentials)
--
-- url = "https://bitbucket.org/libgit2/testgitrepository.git"
-- remote = self.repo.create_remote("bb", url)
-- remote.fetch(callbacks=callbacks)
--
- if __name__ == '__main__':
- unittest.main()
++@unittest.skipIf(True, "network tests are not supported in Guix")
+ class CredentialCallback(utils.RepoTestCase):
+ def test_callback(self):
+ class MyCallbacks(pygit2.RemoteCallbacks):
+@@ -92,6 +93,7 @@ class CredentialCallback(utils.RepoTestCase):
+ remote = self.repo.create_remote("github", url)
+ self.assertRaises(TypeError, lambda: remote.fetch(callbacks=MyCallbacks()))
+
++@unittest.skipIf(True, "network tests are not supported in Guix")
+ class CallableCredentialTest(utils.RepoTestCase):
+
+ def test_user_pass(self):
diff --git a/test/test_repository.py b/test/test_repository.py
-index cfdf01e..c0d8de4 100644
--- a/test/test_repository.py
+++ b/test/test_repository.py
-@@ -538,13 +538,6 @@ class CloneRepositoryTest(utils.NoRepoTestCase):
+@@ -573,6 +573,7 @@ class CloneRepositoryTest(utils.NoRepoTestCase):
self.assertTrue('refs/remotes/custom_remote/master' in repo.listall_references())
self.assertIsNotNone(repo.remotes["custom_remote"])
-- def test_clone_with_credentials(self):
-- repo = clone_repository(
-- "https://bitbucket.org/libgit2/testgitrepository.git",
-- self._temp_dir, callbacks=pygit2.RemoteCallbacks(credentials=pygit2.UserPass("libgit2", "libgit2")))
--
-- self.assertFalse(repo.is_empty)
--
- def test_clone_with_checkout_branch(self):
- # create a test case which isolates the remote
- test_repo = clone_repository('./test/data/testrepo.git',
++ @unittest.skipIf(True, "network tests are not supported in Guix")
+ def test_clone_with_credentials(self):
+ repo = clone_repository(
+ "https://bitbucket.org/libgit2/testgitrepository.git",
+diff --git a/test/test_submodule.py b/test/test_submodule.py
+--- a/test/test_submodule.py
++++ b/test/test_submodule.py
+@@ -42,6 +42,7 @@ SUBM_PATH = 'submodule'
+ SUBM_URL = 'https://github.com/libgit2/pygit2'
+ SUBM_HEAD_SHA = '819cbff552e46ac4b8d10925cc422a30aa04e78e'
+
++@unittest.skipIf(True, "network tests are not supported in Guix")
+ class SubmoduleTest(utils.SubmoduleRepoTestCase):
+
+ def test_lookup_submodule(self):