summaryrefslogtreecommitdiff
path: root/git/test/test_docs.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-04-11 15:14:36 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-04-11 15:14:36 +0800
commit07f6f2aaa5bda8ca4c82ee740de156497bec1f56 (patch)
treea0bf7a7af44abb450711494d98948b431a9f7f8f /git/test/test_docs.py
parent5d4dd2f1a6f31df9e361ebaf75bc0a2de7110c37 (diff)
downloadgitpython-07f6f2aaa5bda8ca4c82ee740de156497bec1f56.tar.gz
Maybe this fixes the doc tests
Diffstat (limited to 'git/test/test_docs.py')
-rw-r--r--git/test/test_docs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_docs.py b/git/test/test_docs.py
index 764515a3..a7e656c2 100644
--- a/git/test/test_docs.py
+++ b/git/test/test_docs.py
@@ -320,7 +320,7 @@ class Tutorials(TestBase):
self.assertEqual(tree['smmap'], tree / 'smmap') # access by index and by sub-path
for entry in tree: # intuitive iteration of tree members
print(entry)
- blob = tree.trees[9].blobs[0] # let's get a blob in a sub-tree
+ blob = tree.trees[1].blobs[0] # let's get a blob in a sub-tree
assert blob.name
assert len(blob.path) < len(blob.abspath)
self.assertEqual(tree.trees[0].name + '/' + blob.name, blob.path) # this is how relative blob path generated