Skip to content

Commit bd7fb97

Browse files
committed
test_refs: fixed failing tests just by making it less strict. It is dependent on the setup of the surrounding repository, hence the amount of ref-types found is actually variable, as long as they get more
1 parent 0d5bfb5 commit bd7fb97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lib/git/refs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def reset(self, commit='HEAD', index=True, working_tree = False,
640640
641641
:param paths:
642642
Single path or list of paths relative to the git root directory
643-
that are to be reset. This allow to partially reset individual files.
643+
that are to be reset. This allows to partially reset individual files.
644644
645645
:param kwargs:
646646
Additional arguments passed to git-reset.

Diff for: test/git/test_refs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_refs(self):
7878
types_found = set()
7979
for ref in self.rorepo.refs:
8080
types_found.add(type(ref))
81-
assert len(types_found) == 3
81+
assert len(types_found) >= 3
8282

8383
def test_is_valid(self):
8484
assert Reference(self.rorepo, 'refs/doesnt/exist').is_valid() == False

0 commit comments

Comments
 (0)