summaryrefslogtreecommitdiff
path: root/git/test/test_submodule.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-08-08 23:35:12 +0200
committerSebastian Thiel <byronimo@gmail.com>2015-08-08 23:35:12 +0200
commit039e265819cc6e5241907f1be30d2510bfa5ca6c (patch)
tree531f934add5859ae84ecd2f3c122f3160b2a9a41 /git/test/test_submodule.py
parenta0acb2229e1ebb59ab343e266fc5c1cc392a974e (diff)
downloadgitpython-039e265819cc6e5241907f1be30d2510bfa5ca6c.tar.gz
fix(tests): remove dependency on sort order
Now we select the submodule by name, not by index. The latter is not deterministic. Closes #335
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r--git/test/test_submodule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py
index 3d78d067..17ce605a 100644
--- a/git/test/test_submodule.py
+++ b/git/test/test_submodule.py
@@ -697,7 +697,7 @@ class TestSubmodule(TestBase):
# submodules are retrieved from the current commit's tree, therefore we can't really get a new submodule
# object pointing to the new submodule commit
- sm_too = parent.submodules[0]
+ sm_too = parent.submodules['module_moved']
assert parent.head.commit.tree[sm.path].binsha == sm.binsha
assert sm_too.binsha == sm.binsha, "cached submodule should point to the same commit as updated one"