Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd7fb97

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 parent0d5bfb5 commitbd7fb97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎lib/git/refs.py

Lines changed: 1 addition & 1 deletion
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. Thisallow to partially reset individual files.
643+
that are to be reset. Thisallows to partially reset individual files.
644644
645645
:param kwargs:
646646
Additional arguments passed to git-reset.

‎test/git/test_refs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_refs(self):
7878
types_found=set()
7979
forrefinself.rorepo.refs:
8080
types_found.add(type(ref))
81-
assertlen(types_found)==3
81+
assertlen(types_found)>=3
8282

8383
deftest_is_valid(self):
8484
assertReference(self.rorepo,'refs/doesnt/exist').is_valid()==False

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp