Skip to content

Commit 27f394a

Browse files
committed
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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy