Skip to content

Commit e93ffe1

Browse files
stsewdByron
authored andcommitted
Fix test
1 parent a77a17f commit e93ffe1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

git/test/test_submodule.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,8 @@ def test_root_module(self, rwrepo):
480480
with sm.config_writer() as writer:
481481
writer.set_value('path', fp) # change path to something with prefix AFTER url change
482482

483-
# update fails as list_items in such a situations cannot work, as it cannot
484-
# find the entry at the changed path
485-
self.failUnlessRaises(InvalidGitRepositoryError, rm.update, recursive=False)
483+
# update doesn't fail, because list_items ignores the wrong path in such situations.
484+
rm.update(recursive=False)
486485

487486
# move it properly - doesn't work as it its path currently points to an indexentry
488487
# which doesn't exist ( move it to some path, it doesn't matter here )

0 commit comments

Comments
 (0)