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

Commit27f394a

Browse files
committed
fix(test_docs): skip master-dependent assertion
It usually fails on branches, which doesn't helpassessing PRs.
1 parent9bebaca commit27f394a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎git/test/test_docs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def test_init_repo_object(self, rw_dir):
6464
assertrepo.head.ref==repo.heads.master# head is a symbolic reference pointing to master
6565
assertrepo.tags['0.3.5']==repo.tag('refs/tags/0.3.5')# you can access tags in various ways too
6666
assertrepo.refs.master==repo.heads['master']# .refs provides access to all refs, i.e. heads ...
67-
assertrepo.refs['origin/master']==repo.remotes.origin.refs.master# ... remotes ...
67+
68+
if'TRAVIS'notinos.environ:
69+
assertrepo.refs['origin/master']==repo.remotes.origin.refs.master# ... remotes ...
6870
assertrepo.refs['0.3.5']==repo.tags['0.3.5']# ... and tags
6971
# ![8-test_init_repo_object]
7072

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp