diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-08-08 23:35:12 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-08-08 23:35:12 +0200 |
commit | 039e265819cc6e5241907f1be30d2510bfa5ca6c (patch) | |
tree | 531f934add5859ae84ecd2f3c122f3160b2a9a41 /git/test/test_submodule.py | |
parent | a0acb2229e1ebb59ab343e266fc5c1cc392a974e (diff) | |
download | gitpython-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.py | 2 |
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" |