14
0
Files
python-GitPython/test-skips.patch
Tomáš Chvátal 25126db0ba - Update to version 3.1.0.1582544583.8c9da73:
* Replace invalid bytes when decoding TagObject stream
  * Use UTF-8 encoding when getting information about a symbolic reference
  * Remove and replace references to nose with unittest in documentation
  * Remove nose from test requirements
  * Replace nose with unittest in tox configuration
  * Replace nose with unittest in Travis CI script
  * Added changelog for unreleased changes
  * Restrict gitdb2 version to <4
  * Remove test.lib.asserts and use unittest.mock.patch directly
  * Replace assert_false with assertFalse
  * Replace assert_true with assertTrue
  * Replace raises with assertRaises
  * Replace assert_raises with assertRaises
  * Replace assert_not_equal with assertNotEqual
  * Replace assert_equal with assertEqual
  * Remove and replace assert_match with assertRegex
  * Remove old, no longer used assert methods
  * Remove references to old mock library in documentation
  * Remove outdated checks for unittest.mock existence
  * Fix Python version requirement in documentation
  * Remove badges for no longer existing Waffle site from README
  * Add support for Python 3.8
  * Replace deprecated Logger.warn with Logger.warning
  * Replace deprecated assertRaisesRegexp alias with assertRaisesRegex
  * Replace deprecated assertNotEquals alias with assertNotEqual
  * Replace deprecated assertEquals alias with assertEqual in TestGit
  * Replace deprecated assertRegexpMatches alias with assertRegex
  * Replace deprecated failUnlessRaises alias with assertRaises in tests
  * Improve requirements.txt format

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-GitPython?expand=0&rev=30
2020-04-02 09:46:33 +00:00

43 lines
2.1 KiB
Diff

Index: GitPython-3.1.0.1582544583.8c9da73/git/test/test_base.py
===================================================================
--- GitPython-3.1.0.1582544583.8c9da73.orig/git/test/test_base.py
+++ GitPython-3.1.0.1582544583.8c9da73/git/test/test_base.py
@@ -111,7 +111,7 @@ class TestBase(TestBase):
assert not rw_repo.config_reader("repository").getboolean("core", "bare")
assert osp.isdir(osp.join(rw_repo.working_tree_dir, 'lib'))
- #@skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes! sometimes...")
+ @skipIf(os.environ.get('SKIP_LOCALHOST', 'false') == 'true', 'git-daemon connection error')
@with_rw_and_rw_remote_repo('0.1.6')
def test_with_rw_remote_and_rw_repo(self, rw_repo, rw_remote_repo):
assert not rw_repo.config_reader("repository").getboolean("core", "bare")
Index: GitPython-3.1.0.1582544583.8c9da73/git/test/test_remote.py
===================================================================
--- GitPython-3.1.0.1582544583.8c9da73.orig/git/test/test_remote.py
+++ GitPython-3.1.0.1582544583.8c9da73/git/test/test_remote.py
@@ -4,6 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+import os
import random
import tempfile
from unittest import skipIf
@@ -408,7 +409,7 @@ class TestRemote(TestBase):
TagReference.delete(rw_repo, new_tag, other_tag)
remote.push(":%s" % other_tag.path)
- @skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes!")
+ @skipIf(os.environ.get('SKIP_LOCALHOST', 'false') == 'true', 'git-daemon connection error')
@with_rw_and_rw_remote_repo('0.1.6')
def test_base(self, rw_repo, remote_repo):
num_remotes = 0
@@ -641,6 +642,7 @@ class TestRemote(TestBase):
# will raise fatal: Will not delete all non-push URLs
self.assertRaises(GitCommandError, remote.delete_url, test3)
+ @skipIf(os.environ.get('SKIP_GITHUB', 'false') == 'true', 'GitHub connection error')
def test_fetch_error(self):
rem = self.rorepo.remote('origin')
with self.assertRaisesRegex(GitCommandError, "[Cc]ouldn't find remote ref __BAD_REF__"):