Skip to content

Commit f38cc00

Browse files
committed
Make 2 more too-low git version skips into errors
In the tests only, and not in any way affecting the feature set or requirements of GitPython itself. This is similar to, and with the same reasoning as, cf5f1dc.
1 parent cd175a5 commit f38cc00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: test/test_repo.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import pickle
1414
import sys
1515
import tempfile
16-
from unittest import mock, SkipTest, skip
16+
from unittest import mock, skip
1717

1818
import pytest
1919

@@ -1235,7 +1235,7 @@ def test_merge_base(self):
12351235
def test_is_ancestor(self):
12361236
git = self.rorepo.git
12371237
if git.version_info[:3] < (1, 8, 0):
1238-
raise SkipTest("git merge-base --is-ancestor feature unsupported")
1238+
raise RuntimeError("git merge-base --is-ancestor feature unsupported (test needs git 1.8.0 or later)")
12391239

12401240
repo = self.rorepo
12411241
c1 = "f6aa8d1"
@@ -1283,7 +1283,7 @@ def test_git_work_tree_dotgit(self, rw_dir):
12831283
based on it."""
12841284
git = Git(rw_dir)
12851285
if git.version_info[:3] < (2, 5, 1):
1286-
raise SkipTest("worktree feature unsupported")
1286+
raise RuntimeError("worktree feature unsupported (test needs git 2.5.1 or later)")
12871287

12881288
rw_master = self.rorepo.clone(join_path_native(rw_dir, "master_repo"))
12891289
branch = rw_master.create_head("aaaaaaaa")

0 commit comments

Comments
 (0)