ad4dad059d
- Activate test suite and remove bcond test - Add py37.patch already merged upstream to fix Python 3.7, especially git submodules - Add test_blocking_lock_file-extra-time.patch to avoid an indeterministic timing failure - Add test-skips.patch to skip one expected failure and workaround two unknown failures - Remove test suite from the runtime package - Add doc/source/*.rst to %docs - Remove dependency on python3-mock - Set build dependency ddt minimum version 1.1.1 OBS-URL: https://build.opensuse.org/request/show/685184 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-GitPython?expand=0&rev=20
41 lines
2.0 KiB
Diff
41 lines
2.0 KiB
Diff
diff -u GitPython-2.1.11-orig/git/test/test_base.py GitPython-2.1.11/git/test/test_base.py
|
|
--- GitPython-2.1.11-orig/git/test/test_base.py 2019-03-13 15:54:50.126688903 +0700
|
|
+++ GitPython-2.1.11/git/test/test_base.py 2019-03-13 16:11:54.287675238 +0700
|
|
@@ -112,7 +112,7 @@
|
|
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")
|
|
diff -u GitPython-2.1.11-orig/git/test/test_remote.py GitPython-2.1.11/git/test/test_remote.py
|
|
--- GitPython-2.1.11-orig/git/test/test_remote.py 2019-03-13 15:54:50.242689909 +0700
|
|
+++ GitPython-2.1.11/git/test/test_remote.py 2019-03-13 16:23:59.918147844 +0700
|
|
@@ -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
|
|
@@ -397,7 +398,7 @@
|
|
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
|
|
@@ -630,6 +631,7 @@
|
|
# will raise fatal: Will not delete all non-push URLs
|
|
assert_raises(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, "Couldn't find remote ref __BAD_REF__"):
|