From 039e265819cc6e5241907f1be30d2510bfa5ca6c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 8 Aug 2015 23:35:12 +0200 Subject: fix(tests): remove dependency on sort order Now we select the submodule by name, not by index. The latter is not deterministic. Closes #335 --- git/test/test_submodule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/test') 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" -- cgit v1.2.1