Skip to content

Commit 07f6f2a

Browse files
committed
Maybe this fixes the doc tests
1 parent 5d4dd2f commit 07f6f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/test/test_docs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def test_references_and_objects(self, rw_dir):
320320
self.assertEqual(tree['smmap'], tree / 'smmap') # access by index and by sub-path
321321
for entry in tree: # intuitive iteration of tree members
322322
print(entry)
323-
blob = tree.trees[9].blobs[0] # let's get a blob in a sub-tree
323+
blob = tree.trees[1].blobs[0] # let's get a blob in a sub-tree
324324
assert blob.name
325325
assert len(blob.path) < len(blob.abspath)
326326
self.assertEqual(tree.trees[0].name + '/' + blob.name, blob.path) # this is how relative blob path generated

0 commit comments

Comments
 (0)