summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantos Gallegos <santos_g@outlook.com>2019-02-02 00:30:07 -0500
committerSebastian Thiel <byronimo@gmail.com>2019-07-20 19:48:09 +0800
commite93ffe192427ee2d28a0dd90dbe493e3c54f3eae (patch)
treea1e80b276b5528f99ad73544c4d98795ee0a97e6
parenta77a17f16ff59f717e5c281ab4189b8f67e25f53 (diff)
downloadgitpython-e93ffe192427ee2d28a0dd90dbe493e3c54f3eae.tar.gz
Fix test
-rw-r--r--git/test/test_submodule.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py
index 2703ad6f..94028d83 100644
--- a/git/test/test_submodule.py
+++ b/git/test/test_submodule.py
@@ -480,9 +480,8 @@ class TestSubmodule(TestBase):
with sm.config_writer() as writer:
writer.set_value('path', fp) # change path to something with prefix AFTER url change
- # update fails as list_items in such a situations cannot work, as it cannot
- # find the entry at the changed path
- self.failUnlessRaises(InvalidGitRepositoryError, rm.update, recursive=False)
+ # update doesn't fail, because list_items ignores the wrong path in such situations.
+ rm.update(recursive=False)
# move it properly - doesn't work as it its path currently points to an indexentry
# which doesn't exist ( move it to some path, it doesn't matter here )