From 5d4dd2f1a6f31df9e361ebaf75bc0a2de7110c37 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 11 Apr 2020 15:06:45 +0800 Subject: This should fix tests, as tree[0] is not a tree anymore --- git/test/test_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/test') diff --git a/git/test/test_docs.py b/git/test/test_docs.py index 57921613..764515a3 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[0].blobs[0] # let's get a blob in a sub-tree + blob = tree.trees[9].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 -- cgit v1.2.1