Skip to content

Commit 27f394a

Browse files
committedJun 14, 2016
fix(test_docs): skip master-dependent assertion
It usually fails on branches, which doesn't help assessing PRs.
1 parent 9bebaca commit 27f394a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎git/test/test_docs.py

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

0 commit comments

Comments
 (0)