diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-06-14 07:41:59 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2016-06-14 07:52:07 +0200 |
commit | 27f394a58b7795303926cd2f7463fc7187e1cce4 (patch) | |
tree | 9df5c151cdaaf64f0ca07d590d310014a3984679 /git/test/test_docs.py | |
parent | 9bebaca85a19e0ac8a776ee09981f0c826e1cafa (diff) | |
download | gitpython-27f394a58b7795303926cd2f7463fc7187e1cce4.tar.gz |
fix(test_docs): skip master-dependent assertion
It usually fails on branches, which doesn't help
assessing PRs.
Diffstat (limited to 'git/test/test_docs.py')
-rw-r--r-- | git/test/test_docs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/test/test_docs.py b/git/test/test_docs.py index 8dc08559..a4604c58 100644 --- a/git/test/test_docs.py +++ b/git/test/test_docs.py @@ -64,7 +64,9 @@ class Tutorials(TestBase): assert repo.head.ref == repo.heads.master # head is a symbolic reference pointing to master assert repo.tags['0.3.5'] == repo.tag('refs/tags/0.3.5') # you can access tags in various ways too assert repo.refs.master == repo.heads['master'] # .refs provides access to all refs, i.e. heads ... - assert repo.refs['origin/master'] == repo.remotes.origin.refs.master # ... remotes ... + + if 'TRAVIS' not in os.environ: + assert repo.refs['origin/master'] == repo.remotes.origin.refs.master # ... remotes ... assert repo.refs['0.3.5'] == repo.tags['0.3.5'] # ... and tags # ![8-test_init_repo_object] |